summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_cert.c
diff options
context:
space:
mode:
authorjsing <>2014-05-29 11:28:18 +0000
committerjsing <>2014-05-29 11:28:18 +0000
commitecc9c4a424e52e20e2316634f1b21477adae2b57 (patch)
tree8912bbf31ae0ce261e303eaf575cc5e716a30e1b /src/lib/libssl/ssl_cert.c
parent245ae4880e530f12d2b009a9053afc4ff8da74f9 (diff)
downloadopenbsd-ecc9c4a424e52e20e2316634f1b21477adae2b57.tar.gz
openbsd-ecc9c4a424e52e20e2316634f1b21477adae2b57.tar.bz2
openbsd-ecc9c4a424e52e20e2316634f1b21477adae2b57.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/ssl_cert.c')
0 files changed, 0 insertions, 0 deletions