diff options
author | 2014-06-07 15:23:48 +0000 | |
---|---|---|
committer | 2014-06-07 15:23:48 +0000 | |
commit | cceca7c3f8c7243377bd7cf5c65d618e09635408 (patch) | |
tree | 8d2bfd852e173b208c833a1770e585627cae2207 /lib/libc | |
parent | Remove various test stubs. The good ones have been moved by jsing (diff) | |
download | wireguard-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