diff options
author | Alessandro Ghedini <alessandro@cloudflare.com> | 2016-05-09 12:59:26 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-05-16 15:58:52 +0100 |
commit | 6385ffd12d82ec9ef601100e1bdbd21ef240dc5b (patch) | |
tree | 280b35e819ce6af7fafc24ab9a1187dd4a85acb5 /include/openssl/tls1.h | |
parent | 6546e9b2210c98da68f5a481ad81ebabad892977 (diff) | |
download | openssl-6385ffd12d82ec9ef601100e1bdbd21ef240dc5b.tar.gz |
Do not access SSL struct directly in TLS1_get_version and TLS1_get_client_version macros
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'include/openssl/tls1.h')
-rw-r--r-- | include/openssl/tls1.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/openssl/tls1.h b/include/openssl/tls1.h index 61d5bccac4..a0a3698d15 100644 --- a/include/openssl/tls1.h +++ b/include/openssl/tls1.h @@ -179,10 +179,10 @@ extern "C" { # define TLS1_2_VERSION_MINOR 0x03 # define TLS1_get_version(s) \ - ((s->version >> 8) == TLS1_VERSION_MAJOR ? s->version : 0) + ((SSL_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_version(s) : 0) # define TLS1_get_client_version(s) \ - ((s->client_version >> 8) == TLS1_VERSION_MAJOR ? s->client_version : 0) + ((SSL_client_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_client_version(s) : 0) # define TLS1_AD_DECRYPTION_FAILED 21 # define TLS1_AD_RECORD_OVERFLOW 22 |