diff options
author | jsing <> | 2014-06-07 15:23:48 +0000 |
---|---|---|
committer | jsing <> | 2014-06-07 15:23:48 +0000 |
commit | be87c66b077143932acac714aba190ca4a70bc75 (patch) | |
tree | 814a87922ce72ada7fd2eb39130f7b0a76b13521 /src/lib/libssl/d1_srvr.c | |
parent | acc9efcd81c21f083ddd54c813e692ffd635cc6a (diff) | |
download | openbsd-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