Skip to content

Commit a814ae6

Browse files
author
Hanno Becker
committed
PSA: Adapt PK test suite to new key policy initialization API
1 parent fcf659b commit a814ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/suites/test_suite_pk.function

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ psa_key_handle_t pk_psa_genkey( void )
8888
return( PK_PSA_INVALID_SLOT );
8989

9090
/* set up policy on key slot */
91-
psa_key_policy_init( &policy );
91+
policy = psa_key_policy_init();
9292
psa_key_policy_set_usage( &policy, PSA_KEY_USAGE_SIGN,
9393
PSA_ALG_ECDSA(PSA_ALG_SHA_256) );
9494
if( PSA_SUCCESS != psa_set_key_policy( key, &policy ) )

0 commit comments

Comments
 (0)