Skip to content

Conversation

@frankmorgner
Copy link
Member

In #2646 the EAC implementation has been tested with OpenSSL 3.0 and it was found that the APDU encoding doesn't work for OpenSSL 3+ anymore (see this discussion). In order to fix this problem, the encoding/decoding has now been rewritten with OpenSC's ASN.1 parser.

Additionally this PR removes some sanity checks when transmitting encrypted APDUs. This is only useful when OpenSC is used as "transport layer" for communicating with a card, e.g. in ccid-emulator. Since this is a niche use case, sanity checks are removed from OpenSC and should now be done in the calling application if needed.

Also, note the small fixes to the build system.

Checklist
  • PKCS#11 module is tested
  • Windows minidriver is tested
  • macOS tokend is tested

@llogar
Copy link
Contributor

llogar commented Jan 10, 2023

I can confirm this fixes the problem mentioned in #2646. I hope it gets accepted soon, so I can then rebase the eOI support.

The content of the APDUs is still verified by the card. In OpenSC,
checking the certificate validity, and the signatures matching some
portions of the content was implemented, but never enabled. Since this
is only useful in few corner cases, we now remove this functionality.
certificate description has no long term use anymore
opensc is now patched with all necessities in order to avoid this hack
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.

2 participants