From 61c324bbdd9a1d4037399c916db17d28f1eb6f8a Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Thu, 29 Jul 2010 21:09:03 +0000 Subject: [PATCH] - Enabled TLSv1.1 support in server as well --- library/ssl_srv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/ssl_srv.c b/library/ssl_srv.c index 20c2eccbc..24b8b4491 100644 --- a/library/ssl_srv.c +++ b/library/ssl_srv.c @@ -92,8 +92,8 @@ static int ssl_parse_client_hello( ssl_context *ssl ) ssl->max_minor_ver = buf[4]; ssl->major_ver = SSL_MAJOR_VERSION_3; - ssl->minor_ver = ( buf[4] <= SSL_MINOR_VERSION_1 ) - ? buf[4] : SSL_MINOR_VERSION_1; + ssl->minor_ver = ( buf[4] <= SSL_MINOR_VERSION_2 ) + ? buf[4] : SSL_MINOR_VERSION_2; if( ( ret = ssl_fetch_input( ssl, 2 + n ) ) != 0 ) { @@ -258,8 +258,8 @@ static int ssl_parse_client_hello( ssl_context *ssl ) } ssl->major_ver = SSL_MAJOR_VERSION_3; - ssl->minor_ver = ( buf[5] <= SSL_MINOR_VERSION_1 ) - ? buf[5] : SSL_MINOR_VERSION_1; + ssl->minor_ver = ( buf[5] <= SSL_MINOR_VERSION_2 ) + ? buf[5] : SSL_MINOR_VERSION_2; ssl->max_major_ver = buf[4]; ssl->max_minor_ver = buf[5];