Clean up dtls1_reset_seq_numbers().
authorjsing <jsing@openbsd.org>
Sun, 2 May 2021 17:18:10 +0000 (17:18 +0000)
committerjsing <jsing@openbsd.org>
Sun, 2 May 2021 17:18:10 +0000 (17:18 +0000)
commit8950dd79c5d213b9b727383104c7a50e71ec7bdf
treed42b73abaaa3049f6416e27c01fb964924fa95a6
parenteda45bbcab28a97ef3e6bb07e5de8aab7abd0c33
Clean up dtls1_reset_seq_numbers().

Rather than doing flag gymnastics, split dtls1_reset_seq_numbers() into
separate read and write functions. Move the calls of these functions into
tls1_change_cipher_state() so they directly follow the change of cipher
state in the record layer, which avoids having to duplicate the calls in
the client and server.

ok inoguchi@ tb@
lib/libssl/d1_pkt.c
lib/libssl/ssl_clnt.c
lib/libssl/ssl_locl.h
lib/libssl/ssl_srvr.c
lib/libssl/t1_enc.c