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

session_management: Add ability to login with raw bytes #90

Merged
merged 1 commit into from
May 3, 2022

Conversation

Subject38
Copy link
Contributor

@Subject38 Subject38 commented Apr 29, 2022

Rationale for this addition is identical to mheese/rust-pkcs11#8. Some dongle drivers are insane and allow you to use invalid strings as a PIN. As a result we need a way to pass in a raw slice of bytes.

@Subject38 Subject38 force-pushed the login_raw branch 2 times, most recently from 7518da0 to a7d839d Compare April 29, 2022 19:08
Copy link
Member

@hug-dev hug-dev 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, thanks for the PR!

Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

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

Excellent, thank you very much for contributing this!

I had one question - do you have a "list" (or at least some examples) of PKCS11 implementations where this is needed, apart from the Safenet example from the PR you linked? This kind of edge case sounds like something we should be covering in Parsec, and it would be really good to have documentation as to which token implementations might need it.

cc @paulhowardarm

@hug-dev hug-dev merged commit 83726ed into parallaxsecond:main May 3, 2022
@Subject38 Subject38 deleted the login_raw branch May 3, 2022 21:17
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.

3 participants