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

sc-hsm: fixed accessing version info #1252

Merged
merged 2 commits into from
Feb 7, 2018
Merged

Conversation

frankmorgner
Copy link
Member

fixes #1244

Checklist
  • Tested with the following card:
    • tested PKCS#11
    • tested Windows Minidriver
    • tested macOS Tokend

@Jakuje
Copy link
Member

Jakuje commented Jan 31, 2018

I had similar patch prepared to submit, since I was running into this issue from time to time.

I am not sure about the changes of the numbers, but if it comes in some specification, that these bits should be on these places (not on the last and one before last), I believe this should go in.

@CardContact
Copy link
Member

By definition, the major and minor number are always encoded in the last two bytes. Older sc-hsm version have a shorter prop_attr, so this will break older cards.

@frankmorgner
Copy link
Member Author

Hmm, I didn't get this definition by reading the specification. Anyway, i changed the parsing so that it hopefully is backward compatible.

@frankmorgner frankmorgner added this to In progress in Release 0.18.0 Feb 2, 2018
@frankmorgner frankmorgner merged commit 36894c8 into OpenSC:master Feb 7, 2018
Release 0.18.0 automation moved this from In progress to Done Feb 7, 2018
@frankmorgner frankmorgner deleted the thukk branch June 21, 2021 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Segmentation Fault using OpenSC with pam_pkcs11 (pkcs11_inspect)
3 participants