Diffusion GnuPG 7e2b0488d135

scd: Fix signing authentication status.

Authored by gniibe on Oct 15 2018, 4:10 AM.

Description

scd: Fix signing authentication status.

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

Cherry-picked from master commit of:
78f542e1f4495195db2e668f9cd41657fb1afc77

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: T4177
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>