summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <>2015-04-15 16:05:23 +0000
committerjsing <>2015-04-15 16:05:23 +0000
commit803fe901561ae85e774d8c387c4853742a37d03c (patch)
tree3d6921045d591206b78b5802a3cd741aa49ea5ef /src/lib/libssl/ssl_lib.c
parent48b163f0308a2df2e5a5b7f91edc2491e64089ba (diff)
downloadopenbsd-803fe901561ae85e774d8c387c4853742a37d03c.tar.gz
openbsd-803fe901561ae85e774d8c387c4853742a37d03c.tar.bz2
openbsd-803fe901561ae85e774d8c387c4853742a37d03c.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 'src/lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions