Add missing ifdefs in ssl modules
This commit is contained in:
parent
59da0a46a4
commit
5fd4917d97
2 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue