mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpg,card: Allow no version information of Yubikey.
* g10/call-agent.c (learn_status_cb): Assume >= 2 when no version. * tools/card-call-scd.c (learn_status_cb): Likewise. -- GnuPG-bug-id: 5100 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
87d2c579cc
commit
1cd615afe3
@ -531,7 +531,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))
|
||||
{
|
||||
|
@ -823,7 +823,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 (!memcmp (keyword, "CARDTYPE", keywordlen))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user