Provide functions to determine if TLSv1.2 record protection is engaged.
authorjsing <jsing@openbsd.org>
Tue, 19 Jan 2021 18:57:09 +0000 (18:57 +0000)
committerjsing <jsing@openbsd.org>
Tue, 19 Jan 2021 18:57:09 +0000 (18:57 +0000)
commit1365e68c83704aebdea192474b3f2c00ac46542b
tree8dc0085980e8a38633c36dc8556cd9b3ebfdf46d
parent9123ae000a0930a3157c2f71f650b5827b9148c6
Provide functions to determine if TLSv1.2 record protection is engaged.

Call these functions from code that needs to know if we've changed cipher
state and enabled record protection, rather than inconsistently checking
various pointers from other places in the code base. This also fixes a
minor bug where the wrong pointers are checked if we're operating with
AEAD.

ok inoguchi@ tb@
lib/libssl/d1_pkt.c
lib/libssl/ssl_locl.h
lib/libssl/ssl_pkt.c
lib/libssl/ssl_srvr.c
lib/libssl/tls12_record_layer.c