mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-25 01:41:05 +00:00
PSA: Adapt ssl_server2 to hew key policy initialization API
This commit is contained in:
parent
1387124c89
commit
9bd8842c77
|
@ -1239,7 +1239,7 @@ static psa_status_t psa_setup_psk_key_slot( psa_key_handle_t slot,
|
||||||
psa_status_t status;
|
psa_status_t status;
|
||||||
psa_key_policy_t policy;
|
psa_key_policy_t policy;
|
||||||
|
|
||||||
psa_key_policy_init( &policy );
|
policy = psa_key_policy_init();
|
||||||
psa_key_policy_set_usage( &policy, PSA_KEY_USAGE_DERIVE, alg );
|
psa_key_policy_set_usage( &policy, PSA_KEY_USAGE_DERIVE, alg );
|
||||||
|
|
||||||
status = psa_set_key_policy( slot, &policy );
|
status = psa_set_key_policy( slot, &policy );
|
||||||
|
|
Loading…
Reference in a new issue