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:
@ -1707,7 +1707,8 @@ int main( int argc, char *argv[] )
|
|||||||
}
|
}
|
||||||
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
#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 */
|
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -2531,7 +2531,9 @@ int main( int argc, char *argv[] )
|
|||||||
}
|
}
|
||||||
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
||||||
|
|
||||||
mbedtls_printf( " ok (key types: %s - %s)\n", mbedtls_pk_get_name( &pkey ), mbedtls_pk_get_name( &pkey2 ) );
|
mbedtls_printf( " ok (key types: %s, %s)\n",
|
||||||
|
key_cert_init ? mbedtls_pk_get_name( &pkey ) : "none",
|
||||||
|
key_cert_init2 ? mbedtls_pk_get_name( &pkey2 ) : "none" );
|
||||||
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
||||||
|
|
||||||
#if defined(MBEDTLS_DHM_C) && defined(MBEDTLS_FS_IO)
|
#if defined(MBEDTLS_DHM_C) && defined(MBEDTLS_FS_IO)
|
||||||
|
@ -1570,7 +1570,7 @@ run_test "Opaque key for server authentication" \
|
|||||||
0 \
|
0 \
|
||||||
-c "Verifying peer X.509 certificate... ok" \
|
-c "Verifying peer X.509 certificate... ok" \
|
||||||
-c "Ciphersuite is TLS-ECDHE-ECDSA" \
|
-c "Ciphersuite is TLS-ECDHE-ECDSA" \
|
||||||
-s "key types: Opaque - invalid PK" \
|
-s "key types: Opaque, none" \
|
||||||
-s "Ciphersuite is TLS-ECDHE-ECDSA" \
|
-s "Ciphersuite is TLS-ECDHE-ECDSA" \
|
||||||
-S "error" \
|
-S "error" \
|
||||||
-C "error"
|
-C "error"
|
||||||
@ -1589,7 +1589,7 @@ run_test "Opaque key for client/server authentication" \
|
|||||||
-c "key type: Opaque" \
|
-c "key type: Opaque" \
|
||||||
-c "Verifying peer X.509 certificate... ok" \
|
-c "Verifying peer X.509 certificate... ok" \
|
||||||
-c "Ciphersuite is TLS-ECDHE-ECDSA" \
|
-c "Ciphersuite is TLS-ECDHE-ECDSA" \
|
||||||
-s "key types: Opaque - invalid PK" \
|
-s "key types: Opaque, none" \
|
||||||
-s "Verifying peer X.509 certificate... ok" \
|
-s "Verifying peer X.509 certificate... ok" \
|
||||||
-s "Ciphersuite is TLS-ECDHE-ECDSA" \
|
-s "Ciphersuite is TLS-ECDHE-ECDSA" \
|
||||||
-S "error" \
|
-S "error" \
|
||||||
|
Reference in New Issue
Block a user