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

proxy: Support copying array of attributes #368

Merged
merged 2 commits into from
Jan 17, 2022

Conversation

ueno
Copy link
Member

@ueno ueno commented Jun 3, 2021

Previously C_SetAttributeValue implementation in the proxy didn't copy array of attributes recursively and caused the subsequent C_GetAttributeValue receive the same memory address for the leaf attributes. This changes the behavior so the copying is always deep copy.

Signed-off-by: Daiki Ueno <[email protected]>
@ueno ueno force-pushed the wip/dueno/attribute-array branch from b49e5ac to 1a6f677 Compare June 3, 2021 06:07
@coveralls
Copy link

coveralls commented Jun 3, 2021

Coverage Status

Coverage increased (+0.01%) to 71.864% when pulling b146127 on ueno:wip/dueno/attribute-array into 0dd0182 on p11-glue:master.

This enables p11_attrs_build to build an attribute list with arrays of
attributes indicated with CKF_ARRAY_ATTRIBUTE.  A couple of new
internal functions have been added: p11_attr_copy and p11_attr_clear.

Signed-off-by: Daiki Ueno <[email protected]>
@ueno ueno force-pushed the wip/dueno/attribute-array branch from 1a6f677 to b146127 Compare June 3, 2021 07:45
@ueno
Copy link
Member Author

ueno commented Jul 10, 2021

@ansasaki would you perhaps like to review this?

@ansasaki
Copy link
Contributor

@ansasaki would you perhaps like to review this?

Yes, I can review

@ueno
Copy link
Member Author

ueno commented Jul 12, 2021

Thank you!

@ueno ueno requested a review from ansasaki July 12, 2021 12:32
Copy link
Contributor

@ansasaki ansasaki left a comment

Choose a reason for hiding this comment

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

LGTM!

@ueno
Copy link
Member Author

ueno commented Jan 17, 2022

Thanks for the review!

@ueno ueno merged commit 4589625 into p11-glue:master Jan 17, 2022
@ueno ueno added this to the 0.24.1 milestone Jan 17, 2022
@onihboni
Copy link

autogen.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants