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:
parent
8dfd0ebfd8
commit
316a8cbc75
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user