diff options
author | Matt Caswell <matt@openssl.org> | 2022-10-27 15:38:32 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-11-14 10:14:41 +0100 |
commit | 732435026b0141063084fb68c076bc1c9fd9bee8 (patch) | |
tree | 1e9c156533a7f9eafd0ebdb4098286f3acd044f8 /ssl/ssl_local.h | |
parent | 6f3072212c2d56cae598bc1d180b2673b3df9be0 (diff) |
Resolve a TODO in ssl3_dispatch_alert
Properly handle the case where there is pending write data and we want
to send an alert.
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19550)
Diffstat (limited to 'ssl/ssl_local.h')
-rw-r--r-- | ssl/ssl_local.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ssl/ssl_local.h b/ssl/ssl_local.h index 50e3b65372..da01e904a3 100644 --- a/ssl/ssl_local.h +++ b/ssl/ssl_local.h @@ -400,6 +400,15 @@ # define SSL_READ_ETM(s) (s->s3.flags & TLS1_FLAGS_ENCRYPT_THEN_MAC_READ) # define SSL_WRITE_ETM(s) (s->s3.flags & TLS1_FLAGS_ENCRYPT_THEN_MAC_WRITE) +/* alert_dispatch values */ + +/* No alert pending */ +# define SSL_ALERT_DISPATCH_NONE 0 +/* Alert pending */ +# define SSL_ALERT_DISPATCH_PENDING 1 +/* Pending alert write needs to be retried */ +# define SSL_ALERT_DISPATCH_RETRY 2 + /* Mostly for SSLv3 */ # define SSL_PKEY_RSA 0 # define SSL_PKEY_RSA_PSS_SIGN 1 |