summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-05-29 11:28:18 +0000
committerjsing <jsing@openbsd.org>2014-05-29 11:28:18 +0000
commitec0743c214270e4d430795064fc84ce06fcd32f5 (patch)
treec05764997ef868d89a03526050db1aca4e01d318 /lib/libssl/ssl_lib.c
parentno more gcc2. (diff)
downloadwireguard-openbsd-ec0743c214270e4d430795064fc84ce06fcd32f5.tar.xz
wireguard-openbsd-ec0743c214270e4d430795064fc84ce06fcd32f5.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 'lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions