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

when read public key fails trigger a crash #649

Closed
vletoux opened this issue Jan 1, 2016 · 0 comments
Closed

when read public key fails trigger a crash #649

vletoux opened this issue Jan 1, 2016 · 0 comments

Comments

@vletoux
Copy link
Contributor

vletoux commented Jan 1, 2016

(when sc_card_operations.read_public_key is implemented ?) it returns an error when the public key is read, the assertion in sc_pkcs15_dup_pubkey for key == NULL triggers a crash.
This can be reproduced with pkcs11-tool -O

Cause:
in https://github.com/OpenSC/OpenSC/blob/master/src/pkcs11/framework-pkcs15.c#L775 pubkey->pub_data is NULL (called from _pkcs15_create_typed_objects)

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

No branches or pull requests

1 participant