summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_srvr.c
diff options
context:
space:
mode:
authorjsing <>2014-06-07 15:23:48 +0000
committerjsing <>2014-06-07 15:23:48 +0000
commitbe87c66b077143932acac714aba190ca4a70bc75 (patch)
tree814a87922ce72ada7fd2eb39130f7b0a76b13521 /src/lib/libssl/d1_srvr.c
parentacc9efcd81c21f083ddd54c813e692ffd635cc6a (diff)
downloadopenbsd-be87c66b077143932acac714aba190ca4a70bc75.tar.gz
openbsd-be87c66b077143932acac714aba190ca4a70bc75.tar.bz2
openbsd-be87c66b077143932acac714aba190ca4a70bc75.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/d1_srvr.c')
0 files changed, 0 insertions, 0 deletions