Skip to content

Commit e4c7144

Browse files
author
avolinski
committed
Prevent compiler warning, converting psa_key_policy_t to const in call to psa_set_key_policy
1 parent b847138 commit e4c7144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/psa_inject_attestation_key_impl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ psa_attestation_inject_key_impl(const uint8_t *key_data,
4949

5050
psa_key_policy_init();
5151
psa_key_policy_set_usage(&policy, usage, PSA_ALG_DETERMINISTIC_ECDSA(PSA_ALG_SHA_256));
52-
status = psa_set_key_policy(handle, &policy);
52+
status = psa_set_key_policy(handle, (const psa_key_policy_t*)&policy);
5353
if (status != PSA_SUCCESS) {
5454
return (status);
5555
}

0 commit comments

Comments
 (0)