Fix PSA lifetime persistence argument #731

Open
parmi93 wants to merge 2 commits from parmi93/patch-2 into development
parmi93 commented 2026-03-30 04:34:19 -05:00 (Migrated from github.com)

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.

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.
bjwtaylor commented 2026-04-30 07:28:07 -05:00 (Migrated from github.com)

Hi @parmi93, many thanks for submitting this. It looks like the branch on you fork is based of a fairly old commit form tf-psa-crypto. Are you able to update the fork and rebase, as I think the current CI issue is unrelated to your changes and should disappear if you pull in the relevant changes.

Hi @parmi93, many thanks for submitting this. It looks like the branch on you fork is based of a fairly old commit form tf-psa-crypto. Are you able to update the fork and rebase, as I think the current CI issue is unrelated to your changes and should disappear if you pull in the relevant changes.
parmi93 commented 2026-04-30 14:52:44 -05:00 (Migrated from github.com)

Hi @bjwtaylor I merged the upstream development branch into my branch (patch-2).

Hi @bjwtaylor I merged the upstream `development` branch into my branch (`patch-2`).
This pull request is broken due to missing fork information.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'parmi93/patch-2:parmi93/patch-2'
git switch 'parmi93/patch-2'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'development'
git merge --no-ff 'parmi93/patch-2'
git switch 'parmi93/patch-2'
git rebase 'development'
git switch 'development'
git merge --ff-only 'parmi93/patch-2'
git switch 'parmi93/patch-2'
git rebase 'development'
git switch 'development'
git merge --no-ff 'parmi93/patch-2'
git switch 'development'
git merge --squash 'parmi93/patch-2'
git switch 'development'
git merge --ff-only 'parmi93/patch-2'
git switch 'development'
git merge 'parmi93/patch-2'
git push origin 'development'
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-Mbed-TLS/TF-PSA-Crypto!731
No description provided.