summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@cloudflare.com>2016-05-09 12:59:26 +0100
committerMatt Caswell <matt@openssl.org>2016-05-16 15:58:52 +0100
commit6385ffd12d82ec9ef601100e1bdbd21ef240dc5b (patch)
tree280b35e819ce6af7fafc24ab9a1187dd4a85acb5
parent6546e9b2210c98da68f5a481ad81ebabad892977 (diff)
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>
-rw-r--r--include/openssl/tls1.h4
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