diff options
Diffstat (limited to 'ssl/ssl_local.h')
-rw-r--r-- | ssl/ssl_local.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ssl/ssl_local.h b/ssl/ssl_local.h index b4a10b7bfa..3b5c87318f 100644 --- a/ssl/ssl_local.h +++ b/ssl/ssl_local.h @@ -268,8 +268,12 @@ && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \ && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION) +/* Check if we are using (D)TLSv1.3 */ +# define SSL_CONNECTION_IS_VERSION13(s) \ + (SSL_CONNECTION_IS_DTLS13(s) || SSL_CONNECTION_IS_TLS13(s)) + # define SSL_CONNECTION_TREAT_AS_TLS13(s) \ - ((SSL_CONNECTION_IS_TLS13(s) || SSL_CONNECTION_IS_DTLS13(s)) \ + (SSL_CONNECTION_IS_VERSION13(s) \ || (s)->early_data_state == SSL_EARLY_DATA_CONNECTING \ || (s)->early_data_state == SSL_EARLY_DATA_CONNECT_RETRY \ || (s)->early_data_state == SSL_EARLY_DATA_WRITING \ |