Relax limit on ClientHello size

This commit is contained in:
Manuel Pégourié-Gonnard 2013-08-02 13:36:00 +02:00 committed by Paul Bakker
parent 609bc81a76
commit 72882b2079

View file

@ -752,7 +752,7 @@ static int ssl_parse_client_hello( ssl_context *ssl )
n = ( buf[3] << 8 ) | buf[4]; n = ( buf[3] << 8 ) | buf[4];
if( n < 45 || n > 512 ) if( n < 45 || n > 2048 )
{ {
SSL_DEBUG_MSG( 1, ( "bad client hello message" ) ); SSL_DEBUG_MSG( 1, ( "bad client hello message" ) );
return( POLARSSL_ERR_SSL_BAD_HS_CLIENT_HELLO ); return( POLARSSL_ERR_SSL_BAD_HS_CLIENT_HELLO );