mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
scd: Flush KDF DO (0x00F9) when it's being set.
* scd/app-openpgp.c (do_setattr): Call flush_cache_item always. -- Only it was called when there was an object with KDF_DATA_LENGTH_MAX. No matter the VALUELEN, it should be flushed. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
8ed85ef3de
commit
d4cb774ddd
@ -2967,14 +2967,14 @@ 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);
|
||||
}
|
||||
else
|
||||
return gpg_error (GPG_ERR_INV_OBJ);
|
||||
|
||||
/* Flush the cache again, because pin2hash_if_kdf uses the DO. */
|
||||
flush_cache_item (app, 0xF9);
|
||||
}
|
||||
|
||||
rc = iso7816_put_data (app_get_slot (app),
|
||||
|
Loading…
x
Reference in New Issue
Block a user