diff options
author | NIIBE Yutaka <[email protected]> | 2020-09-16 04:04:59 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2020-09-16 04:04:59 +0000 |
commit | f4c07fc3d3c32e96d4306f6daa60b6de7fba7dc5 (patch) | |
tree | 28340f52e41f246d94fa7ab2c950d2939dc258fc /scd/app-openpgp.c | |
parent | scd: Add better support for KDF feature. (diff) | |
download | gnupg-f4c07fc3d3c32e96d4306f6daa60b6de7fba7dc5.tar.gz gnupg-f4c07fc3d3c32e96d4306f6daa60b6de7fba7dc5.zip |
scd: Clear caching PIN at KDF setup.
* scd/app-openpgp.c (do_setattr): Clear PINs.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'scd/app-openpgp.c')
-rw-r--r-- | scd/app-openpgp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index 82625b0ae..3d96467bf 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -2931,6 +2931,10 @@ do_setattr (app_t app, ctrl_t ctrl, const char *name, value = NULL; valuelen = 0; } + + cache_pin (app, ctrl, 1, NULL); + cache_pin (app, ctrl, 2, NULL); + cache_pin (app, ctrl, 3, NULL); } else { |