summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2015-04-15 16:05:23 +0000
committerjsing <jsing@openbsd.org>2015-04-15 16:05:23 +0000
commit6dce3cf345a9e84cda4253ff92667f2db1a35406 (patch)
treee3915c4a4a03782ac5e5e5703c26631ef7539c8b /lib/libssl/ssl_lib.c
parentFix setting old-style window -fg/-bg/-attr options that aren't global. (diff)
downloadwireguard-openbsd-6dce3cf345a9e84cda4253ff92667f2db1a35406.tar.xz
wireguard-openbsd-6dce3cf345a9e84cda4253ff92667f2db1a35406.zip
Make tls_close() more robust - do not rely on a close notify being received
from the other side and only return TLS_READ_AGAIN/TLS_WRITE_AGAIN if we failed to send a close notify on a non-blocking socket. Otherwise be more forceful and always shutdown/close the socket regardless of other failures. Also do not consider ENOTCONN or ECONNRESET to be a shutdown failure, since there are various situations where this can occur. ok doug@ guenther@
Diffstat (limited to 'lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions