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

Implement special parameter to define Key Usage #289

Merged
merged 2 commits into from
Sep 11, 2023
Merged

Conversation

simo5
Copy link
Member

@simo5 simo5 commented Sep 6, 2023

This allows an application finer control on what usage will be allowed for the key.

Fixes #285

@simo5 simo5 requested a review from sahanaprasad07 September 6, 2023 21:53
@simo5
Copy link
Member Author

simo5 commented Sep 6, 2023

@fabled will this work for you?

@simo5
Copy link
Member Author

simo5 commented Sep 6, 2023

Tests are missing switching to draft

@simo5 simo5 marked this pull request as draft September 6, 2023 21:54
@simo5 simo5 force-pushed the key_usage branch 2 times, most recently from b88107d to dd47127 Compare September 6, 2023 22:10
Copy link
Collaborator

@fabled fabled left a comment

Choose a reason for hiding this comment

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

Looks mostly good. The toklen related issue needs fixing.

src/keymgmt.c Outdated Show resolved Hide resolved
src/keymgmt.c Outdated Show resolved Hide resolved
src/keymgmt.c Outdated Show resolved Hide resolved
@simo5
Copy link
Member Author

simo5 commented Sep 7, 2023

@fabled updated the relevant code you pointed out, PTAL

Copy link
Contributor

@sahanaprasad07 sahanaprasad07 left a comment

Choose a reason for hiding this comment

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

Looks good, but I'll wait for tests.

@simo5
Copy link
Member Author

simo5 commented Sep 8, 2023

Updated with tests

This allows an application finer control on what usage will be allowed
for the key.

Fixes latchset#285

Signed-off-by: Simo Sorce <simo@redhat.com>
Signed-off-by: Simo Sorce <simo@redhat.com>
@simo5 simo5 marked this pull request as ready for review September 8, 2023 16:45
@fabled
Copy link
Collaborator

fabled commented Sep 11, 2023

Looks good to me. Thank you!

@simo5 simo5 merged commit a334291 into latchset:main Sep 11, 2023
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.

Key generation should allow specifying key usage
3 participants