- Added ssl_set_max_version() to set the client's maximum sent version number

This commit is contained in:
Paul Bakker 2011-10-06 13:04:09 +00:00
parent 7eb013face
commit 490ecc8c3e
4 changed files with 24 additions and 2 deletions

View file

@ -51,8 +51,11 @@ static int ssl_write_client_hello( ssl_context *ssl )
ssl->major_ver = SSL_MAJOR_VERSION_3;
ssl->minor_ver = SSL_MINOR_VERSION_0;
ssl->max_major_ver = SSL_MAJOR_VERSION_3;
ssl->max_minor_ver = SSL_MINOR_VERSION_2;
if( ssl->max_major_ver == 0 && ssl->max_minor_ver == 0 )
{
ssl->max_major_ver = SSL_MAJOR_VERSION_3;
ssl->max_minor_ver = SSL_MINOR_VERSION_2;
}
/*
* 0 . 0 handshake type