From: GitHub <no...@gi...> - 2015-10-12 15:28:53
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: 0b268f789aa077dd3a9fa6b51060e7b4287eadfd https://github.com/OpenSC/OpenSC/commit/0b268f789aa077dd3a9fa6b51060e7b4287eadfd Author: Doug Engert <dee...@gm...> Date: 2015-10-11 (Sun, 11 Oct 2015) Changed paths: M src/libopensc/card-piv.c Log Message: ----------- Allow PIV driver to use cards where default application in not PIV card-piv.c was not selecting the PIV AID correctly from piv_find_aid. This cause a CAC card that also has the PIV application to fail a VERIFY command of the pin would use a VERIFY APDU P2 where P2 for PIV is 80, but for CAC was 00. A CAC card could work if the caller requested the serial number of the card which did call piv_select_aid. All the OpenSC tools, minidriver and PKCS#11 do this, but Tokend does not. This is a partial fix for https://github.com/OpenSC/OpenSC/issues/570. Tokend in later MacOS versions still has other issues. A more complete solution is needed for cards with multiple applications. I do not have a CAC card or MAC to do any testing. Thanks to https://github.com/mouse07410 who has a CAC card, and a Mac, and has tested this fix. Commit: a912004a7ff646b9403b8f1966e39f9f8fed17e5 https://github.com/OpenSC/OpenSC/commit/a912004a7ff646b9403b8f1966e39f9f8fed17e5 Author: Frank Morgner <mo...@in...> Date: 2015-10-12 (Mon, 12 Oct 2015) Changed paths: M src/libopensc/card-piv.c Log Message: ----------- Merge pull request #574 from dengert/piv-cac Partial fix for #570. Select AID for PIV Compare: https://github.com/OpenSC/OpenSC/compare/5dd806815de8...a912004a7ff6 |