- Enlarged maximum size of DHM a client accepts to 512 bytes

This commit is contained in:
Paul Bakker 2011-12-11 11:13:05 +00:00
parent 69e095cc15
commit 55d3fd9aff

View file

@ -395,7 +395,7 @@ static int ssl_parse_server_key_exchange( ssl_context *ssl )
return( POLARSSL_ERR_SSL_BAD_HS_SERVER_KEY_EXCHANGE );
}
if( ssl->dhm_ctx.len < 64 || ssl->dhm_ctx.len > 256 )
if( ssl->dhm_ctx.len < 64 || ssl->dhm_ctx.len > 512 )
{
SSL_DEBUG_MSG( 1, ( "bad server key exchange message" ) );
return( POLARSSL_ERR_SSL_BAD_HS_SERVER_KEY_EXCHANGE );