mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Minor refactoring
This commit is contained in:
@ -809,13 +809,12 @@ static int ssl_pick_cert( ssl_context *ssl,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(POLARSSL_ECDSA_C)
|
#if defined(POLARSSL_ECDSA_C)
|
||||||
if( pk_alg == POLARSSL_PK_ECDSA )
|
if( pk_alg == POLARSSL_PK_ECDSA &&
|
||||||
{
|
! ssl_key_matches_curves( cur->key, ssl->handshake->curves ) )
|
||||||
if( ssl_key_matches_curves( cur->key, ssl->handshake->curves ) )
|
continue;
|
||||||
break;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* If we get there, we got a winner */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user