diff options
author | Matt Caswell <matt@openssl.org> | 2016-11-09 14:43:05 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-11-09 16:03:09 +0000 |
commit | f2342b7ac3c3fe5914235a692c22db1dae316af4 (patch) | |
tree | cea143d252bfea08ab911b8cb35c2b630728d585 /ssl/ssl_locl.h | |
parent | 60e3b3c5506997084352710cd78c4723642936c4 (diff) | |
download | openssl-f2342b7ac3c3fe5914235a692c22db1dae316af4.tar.gz |
Address some supported_versions review comments
Added some TODOs, refactored a couple of things and added a SSL_IS_TLS13()
macro.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/ssl_locl.h')
-rw-r--r-- | ssl/ssl_locl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h index 31e1fd52dd..63b001ffee 100644 --- a/ssl/ssl_locl.h +++ b/ssl/ssl_locl.h @@ -349,6 +349,10 @@ /* Check if an SSL structure is using DTLS */ # define SSL_IS_DTLS(s) (s->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS) + +/* Check if we are using TLSv1.3 */ +# define SSL_IS_TLS13(s) (!SSL_IS_DTLS(s) && (s)->version >= TLS1_3_VERSION) + /* See if we need explicit IV */ # define SSL_USE_EXPLICIT_IV(s) \ (s->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_EXPLICIT_IV) |