mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg,scd: Fix handling of KDF feature.
* g10/card-util.c (kdf_setup): Fix the default value. * scd/app-openpgp.c (do_setattr): Support kdf-setup "off" by Zeitcontrol. Make sure Gnuk and Yubikey work well. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
6e51f2044a
commit
8dfd0ebfd8
2 changed files with 25 additions and 13 deletions
|
@ -2107,8 +2107,8 @@ kdf_setup (const char *args)
|
|||
|
||||
if (!strcmp (args, "off"))
|
||||
{
|
||||
len = 5;
|
||||
memcpy (kdf_data, "\xF9\x03\x81\x01\x00", len);
|
||||
len = 3;
|
||||
memcpy (kdf_data, "\x81\x01\x00", len);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue