Allow vendor defined CK_USER_TYPE in C_Login#109
Merged
Conversation
danni
reviewed
Feb 2, 2021
Collaborator
|
Thanks for this PR. Few comments around making this a touch more generic. Also please make sure the |
Contributor
Author
|
Need a bit of help with Cython... Tried this and got Also |
Collaborator
|
Ahh, the problem is you need a |
bdc4bbe to
59308db
Compare
danni
reviewed
Feb 3, 2021
59308db to
65c8758
Compare
For user (non-SO) login, the standard value for userType is CKU_USER. This commit allows for vendor-defined values, e.g., as used by Thales Luna HSM 7.
65c8758 to
de2be2d
Compare
Contributor
Author
|
bump |
danni
approved these changes
Mar 3, 2022
mingulov
pushed a commit
to mingulov/python-pkcs11
that referenced
this pull request
Mar 18, 2026
Allow vendor defined CK_USER_TYPE in C_Login
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thales in Luna HSM 7 SDKs is using vendor-defined CK_USER_TYPEs. Specifically, Thales is using 0x80000001, 0x80000002, 0x80000003 to allow for some role separation in use of keys in the HSM.
This commit allows specifying the user type as an alternative to the default 0x1(CKU_USER).