summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2015-09-10 10:14:20 +0000
committerjsing <jsing@openbsd.org>2015-09-10 10:14:20 +0000
commite2b71c1183d205091cebdcccae5693f34156755f (patch)
tree4a72da08ad7b3a6be848f67f09a16b23dc0d26f1 /lib/libc
parentadd MLINKS for _prefer_ciphers_* (diff)
downloadwireguard-openbsd-e2b71c1183d205091cebdcccae5693f34156755f.tar.xz
wireguard-openbsd-e2b71c1183d205091cebdcccae5693f34156755f.zip
Split tls_handshake() out from tls_accept/tls_connect. By doing this the
tls_accept/tls_connect functions can be guaranteed to succeed or fail and will no longer return TLS_READ_AGAIN/TLS_WRITE_AGAIN. This also resolves the semantics of tls_accept_*. The tls_handshake() function now does I/O and can return TLS_READ_AGAIN/TLS_WRITE_AGAIN. Calls to tls_read() and tls_write() will trigger the handshake if it has not already completed, meaning that in many cases existing code will continue to work. Discussed over many coffees at l2k15. ok beck@ bluhm@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions