Fix compiler warnings: initialize local variables: psa_alg, psa_alg2, psa_usage

Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
Przemek Stekiel 2022-05-05 09:31:08 +02:00
parent 134eb8b6e2
commit 488efa05b6
2 changed files with 3 additions and 3 deletions

View File

@ -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 )

View File

@ -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 )
{