mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 16:45:28 +00:00
Add one more debug message
This commit is contained in:
parent
7eb58cbae8
commit
e540b49a3f
|
@ -589,6 +589,12 @@ static int ssl_pick_cert( mbedtls_ssl_context *ssl,
|
||||||
|
|
||||||
MBEDTLS_SSL_DEBUG_MSG( 3, ( "ciphersuite requires certificate" ) );
|
MBEDTLS_SSL_DEBUG_MSG( 3, ( "ciphersuite requires certificate" ) );
|
||||||
|
|
||||||
|
if( list == NULL )
|
||||||
|
{
|
||||||
|
MBEDTLS_SSL_DEBUG_MSG( 3, ( "server has no certificate" ) );
|
||||||
|
return( -1 );
|
||||||
|
}
|
||||||
|
|
||||||
for( cur = list; cur != NULL; cur = cur->next )
|
for( cur = list; cur != NULL; cur = cur->next )
|
||||||
{
|
{
|
||||||
MBEDTLS_SSL_DEBUG_CRT( 3, "candidate certificate chain, certificate",
|
MBEDTLS_SSL_DEBUG_CRT( 3, "candidate certificate chain, certificate",
|
||||||
|
@ -649,7 +655,6 @@ static int ssl_pick_cert( mbedtls_ssl_context *ssl,
|
||||||
if( cur == NULL )
|
if( cur == NULL )
|
||||||
cur = fallback;
|
cur = fallback;
|
||||||
|
|
||||||
|
|
||||||
/* Do not update ssl->handshake->key_cert unless there is a match */
|
/* Do not update ssl->handshake->key_cert unless there is a match */
|
||||||
if( cur != NULL )
|
if( cur != NULL )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue