diff options
author | jsing <> | 2015-09-10 10:14:21 +0000 |
---|---|---|
committer | jsing <> | 2015-09-10 10:14:21 +0000 |
commit | f7415644a66ca9d04e5e06312a163e677032b695 (patch) | |
tree | b1c4283700879b3793a5395cbab5ffd49e03f34f /src/lib/libtls/tls_init.3 | |
parent | fb8be3d22f2620af8ca6f69de96a1d4e5a8d153b (diff) | |
download | openbsd-f7415644a66ca9d04e5e06312a163e677032b695.tar.gz openbsd-f7415644a66ca9d04e5e06312a163e677032b695.tar.bz2 openbsd-f7415644a66ca9d04e5e06312a163e677032b695.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 'src/lib/libtls/tls_init.3')
0 files changed, 0 insertions, 0 deletions