Rework ssl_set_own_cert() internals
This commit is contained in:
parent
120fdbdb3d
commit
8f618a8e65
3 changed files with 49 additions and 51 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue