Skip to content

Commit

Permalink
- Enabled TLSv1.1 support in server as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Bakker committed Jul 29, 2010
1 parent 2e11f7d commit 61c324b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/ssl_srv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit 61c324b

Please sign in to comment.