-
Notifications
You must be signed in to change notification settings - Fork 803
Fix issues with uninitialized object identifiiers with OpenPACE #2472
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
Conversation
0199f91 to
4ea9ff0
Compare
|
OSX build here fails with: Is it something to be addressed with inside of the openpace or in opensc build? |
|
thanks for the pointer. Using EAC_OBJ_nid2obj is intended as OpenPACE internally extends the object identifiers that may not be visible when the library is linked statically. that's why we ship a wrapper around this openssl function. |
ba65307 to
ebbe63e
Compare
I've changed the code to check whether |
ebbe63e to
bce0981
Compare
assume success if we were able to read at least some amount of data
EAC_init() should be called before actually using OpenPACE. Move EAC_init() to sm-eac.c so that it is not in responsibility of the card driver anymore. The card driver, however, still needs to call EAC_init() if it uses any OpenPACE specific code. Note that mulitple calls of EAC_init() are allowed and don't add any overhead.
bce0981 to
2d2490c
Compare
|
cleaned up the commits and rebased onto master |
fixes #2354
Checklist