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

scd: Add better support for KDF feature.

* scd/app-openpgp.c (do_setattr): Handle kdf-seup "off" for Gnuk.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2020-09-16 12:58:30 +09:00
parent 8dfd0ebfd8
commit 316a8cbc75

View File

@ -2924,6 +2924,13 @@ do_setattr (app_t app, ctrl_t ctrl, const char *name,
rc = verify_chv3 (app, ctrl, pincb, pincb_arg);
if (rc)
return rc;
if (valuelen == 3
&& app->card->cardtype == CARDTYPE_GNUK)
{
value = NULL;
valuelen = 0;
}
}
else
{