diff options
Diffstat (limited to 'ssl/statem')
-rw-r--r-- | ssl/statem/statem.c | 3 | ||||
-rw-r--r-- | ssl/statem/statem.h | 10 |
2 files changed, 1 insertions, 12 deletions
diff --git a/ssl/statem/statem.c b/ssl/statem/statem.c index b885214f3c..138bca220c 100644 --- a/ssl/statem/statem.c +++ b/ssl/statem/statem.c @@ -143,8 +143,7 @@ void ossl_statem_send_fatal(SSL_CONNECTION *s, int al) return; ossl_statem_set_in_init(s, 1); s->statem.state = MSG_FLOW_ERROR; - if (al != SSL_AD_NO_ALERT - && s->statem.enc_write_state != ENC_WRITE_STATE_INVALID) + if (al != SSL_AD_NO_ALERT) ssl3_send_alert(s, SSL3_AL_FATAL, al); } diff --git a/ssl/statem/statem.h b/ssl/statem/statem.h index 28ef97922e..167e8a12bf 100644 --- a/ssl/statem/statem.h +++ b/ssl/statem/statem.h @@ -72,15 +72,6 @@ typedef enum { } WRITE_STATE; typedef enum { - /* The enc_write_ctx can be used normally */ - ENC_WRITE_STATE_VALID, - /* The enc_write_ctx cannot be used */ - ENC_WRITE_STATE_INVALID, - /* Write alerts in plaintext, but otherwise use the enc_write_ctx */ - ENC_WRITE_STATE_WRITE_PLAIN_ALERTS -} ENC_WRITE_STATES; - -typedef enum { CON_FUNC_ERROR = 0, CON_FUNC_SUCCESS, CON_FUNC_DONT_SEND @@ -115,7 +106,6 @@ struct ossl_statem_st { /* Should we skip the CertificateVerify message? */ unsigned int no_cert_verify; int use_timer; - ENC_WRITE_STATES enc_write_state; }; typedef struct ossl_statem_st OSSL_STATEM; |