Add missing ifdefs in ssl modules

This commit is contained in:
Paul Bakker 2013-08-19 13:29:26 +02:00
parent 59da0a46a4
commit 5fd4917d97
2 changed files with 14 additions and 0 deletions

View file

@ -1289,9 +1289,11 @@ static int ssl_parse_client_hello( ssl_context *ssl )
ciphersuite_info->max_minor_ver < ssl->minor_ver )
continue;
#if defined(POLARSSL_ECDH_C) || defined(POLARSSL_ECDSA_C)
if( ( ciphersuite_info->flags & POLARSSL_CIPHERSUITE_EC ) &&
ssl->handshake->ec_curve == 0 )
continue;
#endif
goto have_ciphersuite;
}