diff options
author | jsing <> | 2019-02-23 15:00:44 +0000 |
---|---|---|
committer | jsing <> | 2019-02-23 15:00:44 +0000 |
commit | 6dc7e73103356c68fb1a0e418474365eed4d822c (patch) | |
tree | 25a9c887b7811d28c3008bd7cef5fdbbae0dc050 /src/lib/libssl/ssl_algs.c | |
parent | 8d90809bb33041e7fc7b10bc81d57f61e20daec2 (diff) | |
download | openbsd-6dc7e73103356c68fb1a0e418474365eed4d822c.tar.gz openbsd-6dc7e73103356c68fb1a0e418474365eed4d822c.tar.bz2 openbsd-6dc7e73103356c68fb1a0e418474365eed4d822c.zip |
Set BIO retry on TLS13_IO_WANT_POLLIN/TLS13_IO_WANT_POLLOUT.
In most cases a TLS13_IO_WANT_POLLIN or TLS13_IO_WANT_POLLOUT will have
bubbled up from the wire callbacks, in which case the BIO retry flag will
already be set. However, if we return TLS13_IO_WANT_POLLIN or
TLS13_IO_WANT_POLLOUT from a higher layer the BIO retry flag will not be
set and that will cause SSL_get_error() to return SSL_ERROR_SYSCALL rather
than the intended SSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE.
ok beck@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_algs.c')
0 files changed, 0 insertions, 0 deletions