Add tls12_record_protection_unused() and call from CCS functions.
authorjsing <jsing@openbsd.org>
Tue, 2 Mar 2021 17:16:44 +0000 (17:16 +0000)
committerjsing <jsing@openbsd.org>
Tue, 2 Mar 2021 17:16:44 +0000 (17:16 +0000)
commit747682f9eb9aa17fa993305c9e1a8ec6d7fac45d
tree54bed2751faeb067a4986a1bf76719c1585bbdfe
parent6700498effd92d198633c9e157ef48a0945c611a
Add tls12_record_protection_unused() and call from CCS functions.

This moves the check closer to where a leak could occur and checks all
pointers in the struct.

Suggested by tb@ during review.

ok tb@
lib/libssl/tls12_record_layer.c