1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-02-23 20:08:04 +01:00

Add card vendor 004.

This commit is contained in:
Werner Koch 2008-01-26 13:12:00 +00:00
parent 6313f3dbea
commit 80039354e8
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2008-01-26 Werner Koch <wk@g10code.com>
* card-util.c (get_manufacturer): Add vendor 004 and support for
the unmanaged range.
2007-12-14 Werner Koch <wk@g10code.com>
* gpg.c (main): Set opt.no_homedir_creation already on the first

View File

@ -152,12 +152,17 @@ get_manufacturer (unsigned int no)
/* Note: Make sure that there is no colon or linefeed in the string. */
switch (no)
{
case 0:
case 0xffff: return "test card";
case 0x0001: return "PPC Card Systems";
case 0x0002: return "Prism";
case 0x0003: return "OpenFortress";
default: return "unknown";
case 0x0004: return "Wewid AB";
/* 0x00000 and 0xFFFF are defined as test cards per spec,
0xFFF00 to 0xFFFE are assigned for use with randomly created
serial numbers. */
case 0:
case 0xffff: return "test card";
default: return (no & 0xff00) == 0xff00? "unmanaged S/N range":"unknown";
}
}