summaryrefslogtreecommitdiffstats
path: root/lib/libtls/tls_server.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2015-08-27 14:34:46 +0000
committerjsing <jsing@openbsd.org>2015-08-27 14:34:46 +0000
commit93310cfa04ecb20aee67669b31aaf7bb7c7ae493 (patch)
treeaae8a4731a3a658c34348cac094b612b2f8caa7b /lib/libtls/tls_server.c
parentChange AEAD out_len argument to size_t instead of ssize_t - while here, (diff)
downloadwireguard-openbsd-93310cfa04ecb20aee67669b31aaf7bb7c7ae493.tar.xz
wireguard-openbsd-93310cfa04ecb20aee67669b31aaf7bb7c7ae493.zip
Split the persistent/configuration flags from temporary state flags and
ensure that the temporary state flags get cleared in tls_reset(). Fixes a bug spotted by Marko Kreen whereby TLS_CONNECTING could remain on reset. While here, also move the TLS_STATE_CONNECTING check to after the TLS_CLIENT check - if TLS_STATE_CONNECTING was ever set on any other context type it would allow a bypass. ok bluhm@
Diffstat (limited to 'lib/libtls/tls_server.c')
0 files changed, 0 insertions, 0 deletions