scd: Support CHV-STATUS and CHECKPIN for PIV. master
authorWerner Koch <wk@gnupg.org>
Mon, 21 Jan 2019 14:01:45 +0000 (15:01 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 21 Jan 2019 14:01:45 +0000 (15:01 +0100)
commitfa9d703de5c70ae925e8ca6604073506f24d641a
treeb6b6725f956dc5095047529c6cfa6de664b9ed96
parent29929e65521279eabc98a67c766fe485057405a9
scd: Support CHV-STATUS and CHECKPIN for PIV.

* scd/app-piv.c (parse_pin_keyref): New.
(get_chv_status): New.
(do_getattr): Add name CHV-STATUS.
(verify_pin): Add arg keyref to support other PINs.
(do_change_pin): New.  Right now limited to --clear.
(do_check_pin): New.
(app_select_piv): Register new commands.

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