mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-17 16:13:48 +00:00
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:
parent
134eb8b6e2
commit
488efa05b6
@ -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 )
|
||||
|
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user