CVSROOT:        /cvs
Module name:    src
Changes by:     js...@cvs.openbsd.org   2014/06/07 09:23:48

Modified files:
        lib/libssl/src/ssl: t1_enc.c 

Log message:
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).

Reply via email to