1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

scd: Clear caching PIN at KDF setup.

* scd/app-openpgp.c (do_setattr): Clear PINs.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2020-09-16 13:04:59 +09:00
parent 316a8cbc75
commit f4c07fc3d3

View File

@ -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
{