diff options
author | jsing <> | 2014-05-29 11:28:18 +0000 |
---|---|---|
committer | jsing <> | 2014-05-29 11:28:18 +0000 |
commit | 90a27dd2630fc2f77d90209add109a18beb0f2e2 (patch) | |
tree | 8912bbf31ae0ce261e303eaf575cc5e716a30e1b /src/lib/libssl/t1_meth.c | |
parent | 2ad70e8a88961d1009c50ccc6d5ee104299eebde (diff) | |
download | openbsd-90a27dd2630fc2f77d90209add109a18beb0f2e2.tar.gz openbsd-90a27dd2630fc2f77d90209add109a18beb0f2e2.tar.bz2 openbsd-90a27dd2630fc2f77d90209add109a18beb0f2e2.zip |
Fix another two cases where the return value of ssl_replace_hash() is
unchecked.
In the case of tls1_change_cipher_state(), it is fairly pointless to use
ssl_replace_hash(), since it does not initialise the hash and there is
special handling required in the DTLS write case. Instead, just inline
the part of ssl_replace_hash() that is needed and only
ssl_clear_hash_ctx() the write hash in the non-DTLS case.
Also add a detailed comment explaining why there needs to be specialised
handling for DTLS write context and where the contexts are actually freed.
ok miod@
Diffstat (limited to 'src/lib/libssl/t1_meth.c')
0 files changed, 0 insertions, 0 deletions