diff options
author | Werner Koch <[email protected]> | 2023-03-14 10:25:48 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-03-14 10:28:41 +0000 |
commit | 08cc34911470fbf8f96cb49258481dbb00d1128e (patch) | |
tree | 6bfce61f4320fedcac3f44db79e0910a19e66b4f | |
parent | agent: Do not overwrite a key file by a shadow key file. (diff) | |
download | gnupg-08cc34911470fbf8f96cb49258481dbb00d1128e.tar.gz gnupg-08cc34911470fbf8f96cb49258481dbb00d1128e.zip |
gpg: Allow no version information of Yubikey
* g10/call-agent.c (learn_status_cb): Set is_v2 always for Yubikeys.
--
GnuPG-bug-id: 5100, 6378
Backported-from-master: 1cd615afe3010d2c3919de489d7c9a78513c8694
-rw-r--r-- | g10/call-agent.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/call-agent.c b/g10/call-agent.c index 7e60542ef..abd6eb34d 100644 --- a/g10/call-agent.c +++ b/g10/call-agent.c @@ -525,7 +525,8 @@ learn_status_cb (void *opaque, const char *line) xfree (parm->serialno); parm->serialno = store_serialno (line); parm->is_v2 = (strlen (parm->serialno) >= 16 - && xtoi_2 (parm->serialno+12) >= 2 ); + && (xtoi_2 (parm->serialno+12) == 0 /* Yubikey */ + || xtoi_2 (parm->serialno+12) >= 2)); } else if (keywordlen == 7 && !memcmp (keyword, "APPTYPE", keywordlen)) { |