mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Rework ssl_set_own_cert() internals
This commit is contained in:
@ -875,7 +875,7 @@ static int ssl_pick_cert( mbedtls_ssl_context *ssl,
|
||||
list = ssl->handshake->sni_key_cert;
|
||||
else
|
||||
#endif
|
||||
list = ssl->handshake->key_cert;
|
||||
list = ssl->conf->key_cert;
|
||||
|
||||
if( pk_alg == MBEDTLS_PK_NONE )
|
||||
return( 0 );
|
||||
@ -943,7 +943,7 @@ static int ssl_pick_cert( mbedtls_ssl_context *ssl,
|
||||
cur = fallback;
|
||||
|
||||
|
||||
/* Do not update ssl->handshake->key_cert unless the is a match */
|
||||
/* Do not update ssl->handshake->key_cert unless there is a match */
|
||||
if( cur != NULL )
|
||||
{
|
||||
ssl->handshake->key_cert = cur;
|
||||
|
Reference in New Issue
Block a user