diff options
author | 2015-04-15 16:05:23 +0000 | |
---|---|---|
committer | 2015-04-15 16:05:23 +0000 | |
commit | 6dce3cf345a9e84cda4253ff92667f2db1a35406 (patch) | |
tree | e3915c4a4a03782ac5e5e5703c26631ef7539c8b /lib/libssl/ssl_lib.c | |
parent | Fix setting old-style window -fg/-bg/-attr options that aren't global. (diff) | |
download | wireguard-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