mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-05-31 21:10:25 +00:00
Add a debug message
This commit is contained in:
parent
31cafa33d8
commit
b4b19f395f
|
@ -2515,7 +2515,10 @@ static int ssl_write_client_key_exchange( mbedtls_ssl_context *ssl )
|
||||||
* opaque psk_identity<0..2^16-1>;
|
* opaque psk_identity<0..2^16-1>;
|
||||||
*/
|
*/
|
||||||
if( ssl->conf->psk == NULL || ssl->conf->psk_identity == NULL )
|
if( ssl->conf->psk == NULL || ssl->conf->psk_identity == NULL )
|
||||||
|
{
|
||||||
|
MBEDTLS_SSL_DEBUG_MSG( 1, ( "got no private key for PSK" ) );
|
||||||
return( MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED );
|
return( MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED );
|
||||||
|
}
|
||||||
|
|
||||||
i = 4;
|
i = 4;
|
||||||
n = ssl->conf->psk_identity_len;
|
n = ssl->conf->psk_identity_len;
|
||||||
|
@ -2695,7 +2698,7 @@ static int ssl_write_certificate_verify( mbedtls_ssl_context *ssl )
|
||||||
|
|
||||||
if( mbedtls_ssl_own_key( ssl ) == NULL )
|
if( mbedtls_ssl_own_key( ssl ) == NULL )
|
||||||
{
|
{
|
||||||
MBEDTLS_SSL_DEBUG_MSG( 1, ( "got no private key" ) );
|
MBEDTLS_SSL_DEBUG_MSG( 1, ( "got no private key for certificate" ) );
|
||||||
return( MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED );
|
return( MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue