card: Support reading and writing PIV certificates
authorWerner Koch <wk@gnupg.org>
Thu, 7 Feb 2019 10:05:22 +0000 (11:05 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 7 Feb 2019 10:05:22 +0000 (11:05 +0100)
commitfcec5b40e589b2ef201efb89f22a952feb4a9069
tree9f76f41ae8cf80a592cf7aaef67eccd7290f9121
parent090b5f804aee41a36a9ee1fbf0976109970d810d
card: Support reading and writing PIV certificates

* scd/app-piv.c (add_tlv): New.
(put_data): New.
(do_writecert): New.
(do_setattr): Remove usused special mode 0.
* tools/gpg-card-tool.c (cmd_writecert): Allow other cards than
OPENPGP.
(cmd_readcert): Ditto.

Signed-off-by: Werner Koch <wk@gnupg.org>
scd/app-piv.c
tools/gpg-card-tool.c