Commit d4f7fe8
committed
Fix PSA lifetime persistence argument
Pass `PSA_KEY_PERSISTENCE_DEFAULT` to
`PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION()` instead of
`PSA_KEY_LIFETIME_PERSISTENT`. The macro expects a
`psa_key_persistence_t`, but the previous code incorrectly passed a
value already representing a constructed lifetime. This aligns the call
with the API specification and ensures correct lifetime construction.1 parent ed3c7d2 commit d4f7fe8
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| |||
0 commit comments