Home GnuPG
Diffusion GnuPG 9497d25c567d

scd: Factor common PIN status check out.

Description

scd: Factor common PIN status check out.

* scd/iso7816.h (ISO7816_VERIFY_ERROR): New.
(ISO7816_VERIFY_NO_PIN): New.
(ISO7816_VERIFY_BLOCKED): New.
(ISO7816_VERIFY_NULLPIN): New.
(ISO7816_VERIFY_NOT_NEEDED): New.
* scd/iso7816.c (iso7816_verify_status): New.
* scd/app-nks.c (get_chv_status): Use new function.

Backported from master:

  • Removed the non-existant app-piv.c patches.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Apr 7 2020, 6:25 PM
Parents
rG471b06e91b6a: scd:p15: Fix decrypt followed by sign problem for D-Trust cards.
Branches
Unknown
Tags
Unknown