1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

PSA: Adapt ssl_client2 to new key policy initialization API

This commit is contained in:
Hanno Becker
2019-01-25 14:26:26 +00:00
parent d74dfc2984
commit 2261a0ff52

View File

@ -1601,7 +1601,7 @@ int main( int argc, char *argv[] )
goto exit;
}
psa_key_policy_init( &policy );
policy = psa_key_policy_init();
psa_key_policy_set_usage( &policy, PSA_KEY_USAGE_DERIVE, alg );
status = psa_set_key_policy( slot, &policy );