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
1 changed files with 4 additions and 0 deletions

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
{