Home GnuPG
Diffusion GnuPG 6e51f2044aeb

scd: Fix the use case of verify_chv2 by CHECKPIN.

Description

scd: Fix the use case of verify_chv2 by CHECKPIN.

* scd/app-openpgp.c (verify_chv2): Call verify_a_chv with chvno=1
when needed.

Confusingly, verify_chv2 has two different purposes; One for
verifying with CHV2 (in addition to CHV1), and the call by
CHECKPIN. For the latter, we should check CHV1.

Details

Provenance
gniibeAuthored on Sep 15 2020, 8:31 AM
Parents
rGfbc1b199fdc8: scd:piv: Avoid conflict when writing a cert.
Branches
Unknown
Tags
Unknown