summaryrefslogtreecommitdiffstats
path: root/ssl/s23_clnt.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-08-15 15:15:05 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-08-15 15:15:05 +0000
commit2ea803546046e61783da398306b4a19070c51448 (patch)
tree1cbb1773f735b2a989bb79be74f04c8e6c044a9e /ssl/s23_clnt.c
parent5833e4f5d63b2ca9637c1427a1efc170c479b925 (diff)
Add three Suite B modes to TLS code, supporting RFC6460.
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;