summaryrefslogtreecommitdiffstats
path: root/ssl/s23_clnt.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-12-26 16:17:40 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-12-26 16:17:40 +0000
commitccf6a19e2d825f4039163393023bd15670aee946 (patch)
treedd5bb510651fbdaf23fdcef6c4cbf55489dfb7c4 /ssl/s23_clnt.c
parent28fbbe3b1bc89cd5dba6a0d9e74a3cf24d341002 (diff)
Add three Suite B modes to TLS code, supporting RFC6460.
(backport from HEAD)
Diffstat (limited to 'ssl/s23_clnt.c')
-rw-r--r--ssl/s23_clnt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/s23_clnt.c b/ssl/s23_clnt.c
index 807dd0ba26..20a8b3ba5c 100644
--- a/ssl/s23_clnt.c
+++ b/ssl/s23_clnt.c
@@ -367,6 +367,12 @@ static int ssl23_client_hello(SSL *s)
version_major = TLS1_2_VERSION_MAJOR;
version_minor = TLS1_2_VERSION_MINOR;
}
+ else if (tls1_suiteb(s))
+ {
+ SSLerr(SSL_F_SSL23_CLIENT_HELLO,
+ SSL_R_ONLY_TLS_1_2_ALLOWED_IN_SUITEB_MODE);
+ return -1;
+ }
else if (version == TLS1_1_VERSION)
{
version_major = TLS1_1_VERSION_MAJOR;