Home GnuPG
Diffusion GnuPG f3b70a9352ae

scd: Fix an oddity in changing the PIN.

Description

scd: Fix an oddity in changing the PIN.

* scd/app-openpgp.c (do_change_pin): Verify the PIN before sending the
Change_Reference_Data APDU.

Without this it was possible to enter a longer old PIN and the new PIN
had the surplus PIN digits as its prefix.

Details

Provenance
wernerAuthored on Thu, Oct 2, 3:14 PM
Parents
rGa966c2ce9080: gpg: Revamp structure of PKT_symkey_enc.
Branches
Unknown
Tags
Unknown
Tasks
T7840: Oddity with 7816 change_reference_data