summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-06-07 15:23:48 +0000
committerjsing <jsing@openbsd.org>2014-06-07 15:23:48 +0000
commitcceca7c3f8c7243377bd7cf5c65d618e09635408 (patch)
tree8d2bfd852e173b208c833a1770e585627cae2207 /lib/libc
parentRemove various test stubs. The good ones have been moved by jsing (diff)
downloadwireguard-openbsd-cceca7c3f8c7243377bd7cf5c65d618e09635408.tar.xz
wireguard-openbsd-cceca7c3f8c7243377bd7cf5c65d618e09635408.zip
Further clean up of context handling in tls1_change_cipher_state().
Rather than doing a complex dance to figure out if we should reuse the cipher context and clean it later on, just free it and allocate a new one. This simplifies the code path, especially in the write case where special handling is required for DTLS. Also, calling EVP_CIPHER_CTX_init() for a newly created cipher context is unnecessary, since EVP_CIPHER_CTX_new() already does this (not to mention that it was already missing from the write case).
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions