diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 632a26c1e..9c6c35e3e 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -2516,7 +2516,7 @@ int main( int argc, char *argv[] ) #endif /* MBEDTLS_USE_PSA_CRYPTO */ mbedtls_printf( " ok (key types: %s, %s)\n", - key_cert_init2 ? mbedtls_pk_get_name( &pkey ) : "none", + key_cert_init ? mbedtls_pk_get_name( &pkey ) : "none", key_cert_init2 ? mbedtls_pk_get_name( &pkey2 ) : "none" ); #endif /* MBEDTLS_X509_CRT_PARSE_C */