scd: Fix signing authentication status. master
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 15 Oct 2018 02:10:15 +0000 (11:10 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 15 Oct 2018 02:10:15 +0000 (11:10 +0900)
commit78f542e1f4495195db2e668f9cd41657fb1afc77
tree4f66b2a3ea598422583c12806ffb80cd32a33987
parent4ed941ff26783c4fabfe2079029f8e436eb7e340
scd: Fix signing authentication status.

* scd/app-openpgp.c (do_sign): Clear DID_CHV1 after signing.

--

We have a corner case: In "not forced" situation and authenticated,
and it is changed to "forced", card implementaiton can actually accept
signing, but GnuPG requires authentication, because it is "forced".

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