scd: Clear CHV status on timeout error.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 21 Feb 2019 06:50:43 +0000 (15:50 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 21 Feb 2019 06:50:43 +0000 (15:50 +0900)
commit2013cb5ee667610de35f8b92c2f979f5caa09d4c
tree032ebc3d5f88a628e068b2642391761ee9acaea9
parentbd15aa34ab8ad10adbb7540a8845b4a2600437b6
scd: Clear CHV status on timeout error.

* scd/app-openpgp.c (clear_chv_status): New.
(do_change_pin): Use clear_chv_status.
(do_sign): Call clear_chv_status on GPG_ERR_TIMEOUT.
(do_auth, do_decipher): Likewise.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/app-openpgp.c