mirror of
git://git.gnupg.org/gnupg.git
synced 2024-10-31 20:08:43 +01:00
scd: Fix unblock PIN by a Reset Code with KDF.
* scd/app-openpgp.c (do_change_pin): Use correct CHVNO=1 for pin2hash_if_kdf, for user's PIN. -- GnuPG-bug-id: 5413 Signed-off-by: Kirill Elagin <kirelagin@gmail.com>
This commit is contained in:
parent
4fcfac6feb
commit
f209d7d2db
@ -3454,7 +3454,7 @@ do_change_pin (app_t app, ctrl_t ctrl, const char *chvnostr,
|
|||||||
|
|
||||||
rc = pin2hash_if_kdf (app, 0, resetcode, &result1, &resultlen1);
|
rc = pin2hash_if_kdf (app, 0, resetcode, &result1, &resultlen1);
|
||||||
if (!rc)
|
if (!rc)
|
||||||
rc = pin2hash_if_kdf (app, 0, pinvalue, &result2, &resultlen2);
|
rc = pin2hash_if_kdf (app, 1, pinvalue, &result2, &resultlen2);
|
||||||
if (!rc)
|
if (!rc)
|
||||||
{
|
{
|
||||||
bufferlen = resultlen1 + resultlen2;
|
bufferlen = resultlen1 + resultlen2;
|
||||||
|
Loading…
Reference in New Issue
Block a user