diff options
author | jsing <> | 2015-04-15 16:05:23 +0000 |
---|---|---|
committer | jsing <> | 2015-04-15 16:05:23 +0000 |
commit | dcb31e966f316332772152f9dc4003581bf31395 (patch) | |
tree | 3d6921045d591206b78b5802a3cd741aa49ea5ef /src/lib/libcrypto/crypto/getentropy_linux.c | |
parent | f62c289c77e6f576e0fd3f26d631b4d0fe2cac1c (diff) | |
download | openbsd-dcb31e966f316332772152f9dc4003581bf31395.tar.gz openbsd-dcb31e966f316332772152f9dc4003581bf31395.tar.bz2 openbsd-dcb31e966f316332772152f9dc4003581bf31395.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/libcrypto/crypto/getentropy_linux.c')
0 files changed, 0 insertions, 0 deletions