scd: Add very basic support for PIV cards.
authorWerner Koch <wk@gnupg.org>
Sun, 20 Jan 2019 10:45:57 +0000 (11:45 +0100)
committerWerner Koch <wk@gnupg.org>
Sun, 20 Jan 2019 10:45:57 +0000 (11:45 +0100)
commitec56996029d95d4bd26e1badfe207232270c6247
tree15a92808d0e78a62b8cda19755aedd592c3e7bf4
parent70bb5c7931598590b1acfae90bf4657f5911d2d3
scd: Add very basic support for PIV cards.

* scd/app-piv.c: New.
* scd/Makefile.am (card_apps): Add app-piv.c
* scd/app.c (app_new_register): Try to get a Yubikey serial number.
Detect the PIV application.
(get_supported_applications): Add "piv".
--

Right now this allows the use of the authentication key (9A) for SSH
authentication.  More support will follow soon.

Tested with Yubikey-5.
scd/Makefile.am
scd/app-common.h
scd/app-piv.c [new file with mode: 0644]
scd/app.c