summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_err.c
diff options
context:
space:
mode:
authorjsing <>2014-06-07 15:23:48 +0000
committerjsing <>2014-06-07 15:23:48 +0000
commit13373e71ca3ab1ec7c57e7b77734a0ac703de7ff (patch)
tree814a87922ce72ada7fd2eb39130f7b0a76b13521 /src/lib/libssl/ssl_err.c
parent9c53764a0ba4c6e9262d0f1609e2b5f26d82e845 (diff)
downloadopenbsd-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