Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect return value in psa_security_lifecycle_state (emul) #9745

Merged
merged 1 commit into from Feb 20, 2019

Conversation

moranpeker
Copy link
Contributor

Description

psa_security_lifecycle_state should return uint32_t of the security
lifecycle state.

bug: psa_platfrom_lifecycle_get_impl return value is psa_status_t.

Pull request type

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@alzix

Release Notes

psa_security_lifecycle_state should return uint32_t of the security
lifecycle state.
bug: psa_platfrom_lifecycle_get_impl return value
is psa_status_t.
@ciarmcom
Copy link
Member

@moranpeker, thank you for your changes.
@alzix @ARMmbed/mbed-os-maintainers please review.

@ciarmcom ciarmcom requested review from alzix and a team February 17, 2019 14:00
Copy link
Contributor

@alzix alzix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code was written before #9708.
I suggest to rebase on top of it and use PSA_SUCCESS instead of PSA_LIFECYCLE_SUCCESS. In addition I would suggest verifying that PSA_LIFECYCLE_UNKNOWN does not collide with one of predefined PSA error codes.

Copy link
Contributor

@alzix alzix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 20, 2019

CI started

moranpeker pushed a commit to moranpeker/mbed-os that referenced this pull request Feb 20, 2019
-Add bug fix for psa_security_lifecycle_state function - PR ARMmbed#9745
-Remove lifecycle data from temp boot status data
-Update attesttation_partition_json file to use
PSA_PLATFORM_LC_GET and generate partition
code - auto generated files update
@mbed-ci
Copy link

mbed-ci commented Feb 20, 2019

Test run: SUCCESS

Summary: 12 of 12 test jobs passed
Build number : 1
Build artifacts

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 20, 2019

@moranpeker If you see CI started and you push a new update ,please leave a comment. I'll restart testing

@cmonr
Copy link
Contributor

cmonr commented Feb 20, 2019

@0xc0170 I don't think a commit was added.

that referenced this pull request

@mbed-ci
Copy link

mbed-ci commented Feb 20, 2019

Test run: SUCCESS

Summary: 12 of 12 test jobs passed
Build number : 2
Build artifacts

@cmonr cmonr merged commit 813c844 into ARMmbed:master Feb 20, 2019
moranpeker pushed a commit to moranpeker/mbed-os that referenced this pull request Feb 27, 2019
-Add bug fix for psa_security_lifecycle_state function - PR ARMmbed#9745
-Remove lifecycle data from temp boot status data
-Update attesttation_partition_json file to use
PSA_PLATFORM_LC_GET and generate partition
code - auto generated files update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants