-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add support for vendor defined attributes #237
base: main
Are you sure you want to change the base?
Add support for vendor defined attributes #237
Conversation
Signed-off-by: Joe Rozner <[email protected]>
ca4983b
to
697a4bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this! This will complete nicely vendor-defined mechanisms already added here: #232
Does SoftHSM support them? Would be nice to add tests if possible. |
Signed-off-by: Joe Rozner <[email protected]>
Signed-off-by: Joe Rozner <[email protected]>
I'll look into whether SoftHSM supports any vendor defined attributes and can write some tests if it does. I've been testing this with a Yubikey which does rely on them for specifying the touch/pin policy. This set of changes seems to have broken something around the attribute type value, it's working with some values but not others. Need to debug. |
Looks like I just missed a compilation for my test code. Everything is working |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too bad there are no tests in SoftHsm but good that you tested with Yubikey! Thanks for the changes!
All good on my side! Seems that the CI is failing (can you see the logs btw? Could be a permission thing). Seems you need to |
Signed-off-by: Joe Rozner <[email protected]>
Formatting fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one question though.
cryptoki/src/object.rs
Outdated
@@ -405,7 +413,6 @@ impl TryFrom<CK_ATTRIBUTE_TYPE> for AttributeType { | |||
} | |||
|
|||
#[derive(Debug, Clone, PartialEq, Eq)] | |||
#[non_exhaustive] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this got removed? Correct me if I'm wrong but vendor defined doesn't cover all space of possible values? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, fixed that. You're correct that it's not exhaustive.
Head branch was pushed to by a user without write access
You forgot to sign-off the last commit 🍏 |
No description provided.