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

Fix error when signing with Swedish BankID card #272

Closed
wants to merge 1 commit into from

Conversation

andbil
Copy link
Contributor

@andbil andbil commented Aug 3, 2014

Some Swedish BankID cards (at least card type 6006 and probably 6005) have key reference 0, but SC_SEC_ENV_KEY_REF_PRESENT should not be set since this causes an error when creating a signature (using fribid on Ubuntu x64). Also see https://en.it-usenet.org/thread/11873/12745/. This commit fixes #265

@dengert
Copy link
Member

dengert commented Aug 3, 2014

This change could cause problems with other cards which use the same code.
The patch needs to be reviewed by developers of other cards.
Can the test be moved to the card driver that supports these BankID cards?

Added card type check in addition to check for SC_SEC_ENV_KEY_REF_PRESENT

Added card type check in addition to check for SC_SEC_ENV_KEY_REF_PRESENT
@andbil
Copy link
Contributor Author

andbil commented Aug 3, 2014

Ok, put a check for card type in card-setcos.c instead.

@viktorTarasov
Copy link
Member

Applied in 139333f,
thank you.

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.

Creating a signature with certain setcos card fails
3 participants