openssl/apps
Matthew Hodgson b92678f4e9 openssl s_server: don't use sendto() with connected UDP socket
Fixes #7675

On macOS, if you call `connect()` on a UDP socket you cannot then
call `sendto()` with a destination, otherwise it fails with Err#56
('socket is already connected').

By calling `BIO_ctrl_set_connected()` on the wbio we can tell it
that the socket has been connected and make it call `send()` rather
than `sendto()`.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/7676)
2018-11-21 21:04:38 +01:00
..
demoSRP
app_rand.c Update copyright year 2018-11-20 13:26:47 +00:00
apps.c apps: allow empty attribute values with -subj 2018-10-08 16:32:47 -05:00
apps.h apps: Stop pretending to care about Netscape keys 2018-11-02 10:58:35 +01:00
asn1pars.c
bf_prefix.c
build.info Make sure the 'tsget' script is called 'tsget.pl' everywhere 2018-07-23 18:33:48 +02:00
ca-cert.srl
ca-key.pem
ca-req.pem
ca.c Fix: 'openssl ca' command crashes when used with 'rand_serial' option 2018-10-17 12:02:29 +02:00
CA.pl.in
cert.pem
ciphers.c
client.pem
cms.c
crl2p7.c
crl.c
ct_log_list.cnf
dgst.c
dh1024.pem
dh2048.pem
dh4096.pem
dhparam.c apps/dsaparam.c generates code that is intended to be pasted or included 2018-07-30 07:34:32 +10:00
dsa512.pem
dsa1024.pem
dsa-ca.pem
dsa-pca.pem
dsa.c
dsap.pem
dsaparam.c apps/dsaparam.c generates code that is intended to be pasted or included 2018-07-30 07:34:32 +10:00
ec.c
ecparam.c Use the new non-curve type specific EC functions internally 2018-07-31 09:08:38 +01:00
enc.c
engine.c
errstr.c
gendsa.c Issue warnings for large DSA and RSA keys 2018-06-05 18:08:01 +02:00
genpkey.c add 'unsupported cipher mode' diagnostics to evp_lib.c and genpkey.c 2018-06-18 10:45:35 +01:00
genrsa.c Issue warnings for large DSA and RSA keys 2018-06-05 18:08:01 +02:00
nseq.c
ocsp.c Fix a mem leak in the ocsp app 2018-10-02 10:52:57 +01:00
openssl-vms.cnf Create the .rnd file it it does not exist 2018-09-23 08:26:19 +02:00
openssl.c openssl list -mac-algorithms support. 2018-11-02 08:01:09 +10:00
openssl.cnf Create the .rnd file it it does not exist 2018-09-23 08:26:19 +02:00
opt.c apps: Stop pretending to care about Netscape keys 2018-11-02 10:58:35 +01:00
passwd.c
pca-cert.srl
pca-key.pem
pca-req.pem
pkcs7.c
pkcs8.c
pkcs12.c
pkey.c Do not ignore EVP_PKEY_print_public/EVP_PKEY_print_private return values 2018-08-24 15:33:26 +03:00
pkeyparam.c
pkeyutl.c Add option to read pkeyopts interactively 2018-11-18 18:52:02 +01:00
prime.c
privkey.pem
progs.pl
rand.c
rehash.c apps/rehash.c: Convert ISO-8859-1 to UTF-8 2018-10-29 14:03:02 +01:00
req.c openssl req: don't try to report bits 2018-09-04 14:24:11 +02:00
req.pem
rsa8192.pem
rsa.c Check return value of EVP_PKEY_new 2018-11-10 04:30:45 +02:00
rsautl.c
s512-key.pem
s512-req.pem
s1024key.pem
s1024req.pem
s_apps.h
s_cb.c Added missing signature algorithm reflection functions 2018-11-12 16:55:38 -05:00
s_client.c Change Post Handshake auth so that it is opt-in 2018-08-20 15:14:01 +01:00
s_server.c openssl s_server: don't use sendto() with connected UDP socket 2018-11-21 21:04:38 +01:00
s_socket.c
s_time.c Don't call setsockopt with an invalid fd 2018-05-31 10:39:13 +01:00
server2.pem
server.pem
server.srl
sess_id.c
smime.c
speed.c Fix copy&paste error found in Coverity scan 2018-10-13 06:40:21 +03:00
spkac.c
srp.c
storeutl.c
testCA.pem
testdsa.h
testrsa.h
timeouts.h
ts.c
tsget.in
verify.c
version.c
vms_decc_init.c
vms_term_sock.c
vms_term_sock.h
win32_init.c
x509.c apps: Stop pretending to care about Netscape keys 2018-11-02 10:58:35 +01:00