diff options
author | jsing <> | 2014-06-07 15:23:48 +0000 |
---|---|---|
committer | jsing <> | 2014-06-07 15:23:48 +0000 |
commit | 13373e71ca3ab1ec7c57e7b77734a0ac703de7ff (patch) | |
tree | 814a87922ce72ada7fd2eb39130f7b0a76b13521 /src/lib/libssl/ssl_err.c | |
parent | 9c53764a0ba4c6e9262d0f1609e2b5f26d82e845 (diff) | |
download | openbsd-13373e71ca3ab1ec7c57e7b77734a0ac703de7ff.tar.gz openbsd-13373e71ca3ab1ec7c57e7b77734a0ac703de7ff.tar.bz2 openbsd-13373e71ca3ab1ec7c57e7b77734a0ac703de7ff.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 'src/lib/libssl/ssl_err.c')
0 files changed, 0 insertions, 0 deletions