summaryrefslogtreecommitdiffstats
path: root/lib/libssl/tls13_record_layer.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2019-02-23 15:00:44 +0000
committerjsing <jsing@openbsd.org>2019-02-23 15:00:44 +0000
commit6e76079173619971ef6a0714ee99b1f3e9c97bb1 (patch)
tree8081e2f5b2a9e5929ef6fb0bfa5db24e5e969d24 /lib/libssl/tls13_record_layer.c
parentCorrect comment on delete_addresses() return value. (diff)
downloadwireguard-openbsd-6e76079173619971ef6a0714ee99b1f3e9c97bb1.tar.xz
wireguard-openbsd-6e76079173619971ef6a0714ee99b1f3e9c97bb1.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 'lib/libssl/tls13_record_layer.c')
0 files changed, 0 insertions, 0 deletions