summaryrefslogtreecommitdiffstats
path: root/ssl/tls1.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-10-07 15:07:36 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-10-07 15:07:36 +0000
commitb08b158b44e3bcd5afddf9b1b79362fe4a309821 (patch)
treea83d48254e40b8a8bc1ec2fdeb3ac7aa6d5cd40c /ssl/tls1.h
parent177f27d71ec5d77c4d6bc40015b114c093e3782a (diff)
use client version when eliminating TLS v1.2 ciphersuites in client hello
Diffstat (limited to 'ssl/tls1.h')
-rw-r--r--ssl/tls1.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ssl/tls1.h b/ssl/tls1.h
index ef5d5ef357..75ddfcad8d 100644
--- a/ssl/tls1.h
+++ b/ssl/tls1.h
@@ -174,6 +174,9 @@ extern "C" {
#define TLS1_get_version(s) \
((s->version >> 8) == TLS1_VERSION_MAJOR ? s->version : 0)
+#define TLS1_get_client_version(s) \
+ ((s->client_version >> 8) == TLS1_VERSION_MAJOR ? s->client_version : 0)
+
#define TLS1_AD_DECRYPTION_FAILED 21
#define TLS1_AD_RECORD_OVERFLOW 22
#define TLS1_AD_UNKNOWN_CA 48 /* fatal */