1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-18 00:49:50 +02:00

scd: Fix the previous commit.

* scd/app-openpgp.c (do_setattr): Flush the KDF DO just before setting.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2020-02-28 16:25:15 +09:00
parent 3ba7c9bcf7
commit 19f70b5072

View File

@ -2818,6 +2818,9 @@ do_setattr (app_t app, ctrl_t ctrl, const char *name,
if (!rc)
rc = iso7816_put_data (app_get_slot (app), 0, 0xD3, NULL, 0);
/* Flush the cache again, because pin2hash_if_kdf uses the DO. */
flush_cache_item (app, 0xF9);
wipe_and_free (buffer1, bufferlen1);
wipe_and_free_string (oldpinvalue);
}