diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index 3b0107b157..0b070aaed6 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -1717,7 +1717,7 @@ int main( int argc, char *argv[] ) #if defined(MBEDTLS_USE_PSA_CRYPTO) if( opt.key_opaque != 0 ) { - psa_algorithm_t psa_alg, psa_alg2; + psa_algorithm_t psa_alg, psa_alg2 = 0; psa_key_usage_t usage = PSA_KEY_USAGE_SIGN_HASH; if( strcmp( opt.key_opaque_alg1, DFL_KEY_OPAQUE_ALG ) == 0 ) diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index e0bb4d7564..cf4c6aee5f 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -2593,8 +2593,8 @@ int main( int argc, char *argv[] ) #if defined(MBEDTLS_USE_PSA_CRYPTO) if( opt.key_opaque != 0 ) { - psa_algorithm_t psa_alg, psa_alg2; - psa_key_usage_t psa_usage; + psa_algorithm_t psa_alg, psa_alg2 = 0; + psa_key_usage_t psa_usage = 0; if( strcmp( opt.key1_opaque_alg1, DFL_KEY_OPAQUE_ALG ) == 0 ) {