Remove enc_write_state
authorMatt Caswell <matt@openssl.org>
Fri, 23 Sep 2022 11:59:22 +0000 (12:59 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 12 Oct 2022 14:53:31 +0000 (15:53 +0100)
commit4bf610bdce3b0e474c5ce7db5be77e152f3649b6
treea5ac253df4fe3ca2eba95f48ea846835dc7f9844
parent2f6e24eb5bd6a3ea4c5e18ff003acc4e812b527f
Remove enc_write_state

This field was used to track whether a cipher ctx was valid for writing
or not, and also whether we should write out plaintext alerts. With the new
record layer design we no longer need to track whether a cipher ctx is valid
since the whole record layer will be aborted if it is not. Also we have a
different mechanism for tracking whether we should write out plaintext
alerts. Therefore this field is removed from the SSL object.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19343)
ssl/record/methods/recmethod_local.h
ssl/record/methods/tls_common.c
ssl/s3_enc.c
ssl/statem/statem.c
ssl/statem/statem.h
ssl/t1_enc.c
ssl/tls13_enc.c