mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
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
This commit is contained in:
parent
b28d9ff865
commit
08cc349114
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user