1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Merge pull request #5462 from gilles-peskine-arm/ssl-test-pkey-message-clarity

Clarify key types message from ssl_client2 and ssl_server2
This commit is contained in:
Manuel Pégourié-Gonnard
2022-02-03 11:33:03 +01:00
committed by GitHub
3 changed files with 7 additions and 4 deletions

View File

@ -1707,7 +1707,8 @@ int main( int argc, char *argv[] )
}
#endif /* MBEDTLS_USE_PSA_CRYPTO */
mbedtls_printf( " ok (key type: %s)\n", mbedtls_pk_get_name( &pkey ) );
mbedtls_printf( " ok (key type: %s)\n",
strlen( opt.key_file ) ? mbedtls_pk_get_name( &pkey ) : "none" );
#endif /* MBEDTLS_X509_CRT_PARSE_C */
/*