summaryrefslogtreecommitdiff
path: root/ssl/t1_srvr.c
diff options
context:
space:
mode:
authorsteve <steve>2011-04-29 22:56:50 +0000
committersteve <steve>2011-04-29 22:56:50 +0000
commit8eb40e8b94f030c1eb84886048834e0f912dc661 (patch)
tree8ab79b16255077bac70ba405f9368d1e51feeb4c /ssl/t1_srvr.c
parent993f766e0356f466c9c1d802b8ff4e8ef9408117 (diff)
downloadopenssl-8eb40e8b94f030c1eb84886048834e0f912dc661.tar.gz
Initial incomplete TLS v1.2 support. New ciphersuites added, new version
checking added, SHA256 PRF support added. At present only RSA key exchange ciphersuites work with TLS v1.2 as the new signature format is not yet implemented.
Diffstat (limited to 'ssl/t1_srvr.c')
-rw-r--r--ssl/t1_srvr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ssl/t1_srvr.c b/ssl/t1_srvr.c
index 274a3d673..f1d156576 100644
--- a/ssl/t1_srvr.c
+++ b/ssl/t1_srvr.c
@@ -67,6 +67,8 @@
static const SSL_METHOD *tls1_get_server_method(int ver);
static const SSL_METHOD *tls1_get_server_method(int ver)
{
+ if (ver == TLS1_2_VERSION)
+ return TLSv1_2_server_method();
if (ver == TLS1_1_VERSION)
return TLSv1_1_server_method();
if (ver == TLS1_VERSION)
@@ -74,6 +76,11 @@ static const SSL_METHOD *tls1_get_server_method(int ver)
return NULL;
}
+IMPLEMENT_tls_meth_func(TLS1_2_VERSION, TLSv1_2_server_method,
+ ssl3_accept,
+ ssl_undefined_function,
+ tls1_get_server_method)
+
IMPLEMENT_tls_meth_func(TLS1_1_VERSION, TLSv1_1_server_method,
ssl3_accept,
ssl_undefined_function,