diff options
author | jsing <> | 2015-04-15 16:05:23 +0000 |
---|---|---|
committer | jsing <> | 2015-04-15 16:05:23 +0000 |
commit | 803fe901561ae85e774d8c387c4853742a37d03c (patch) | |
tree | 3d6921045d591206b78b5802a3cd741aa49ea5ef /src/lib/libssl | |
parent | 48b163f0308a2df2e5a5b7f91edc2491e64089ba (diff) | |
download | openbsd-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')
0 files changed, 0 insertions, 0 deletions