1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-29 02:22:45 +02:00
gnupg/scd
NIIBE Yutaka d9d98c510b fix wLangId in ccid-driver.c
This is not a part of pin pad support series of mine.

As I found the bug while I am preparing the patches, I report this.

As CCID protocol is little endian, wLangId of US English = 0x0409
is represented as two bytes of 0x09 then 0x04.

It is really confusing that the code like following is floating
around:
	pin_verify -> wLangId = HOST_TO_CCID_16(0x0904);

But, it is 0x0409 (not 0x0904).  It is defined in the documentation:

    http://www.usb.org/developers/docs/USB_LANGIDs.pdf

and origin of this table is Microsoft.  We can see it at:

    http://msdn.microsoft.com/en-us/library/bb165625%28VS.80%29.aspx

Yes, it would be better not to hard-code 0x0409.  It would be better
to try current locale of the user, or to use the first entry of string
descriptor.  I don't have time to implement such a thing...
2012-06-25 10:04:22 +09:00
..
apdu.c Removed some set but unused variables. 2011-08-04 12:22:04 +02:00
apdu.h Collected changes 2010-05-03 11:10:49 +00:00
app-common.h More support for Netkey cards. 2009-05-08 15:07:45 +00:00
app-dinsig.c Fix for card keys > 2048 bit. 2009-07-10 10:15:33 +00:00
app-geldkarte.c Fix for extended length Le in decipher 2009-09-03 10:57:23 +00:00
app-help.c More support for Netkey cards. 2009-05-08 15:07:45 +00:00
app-nks.c Fix for extended length Le in decipher 2009-09-03 10:57:23 +00:00
app-openpgp.c Allow generation of card keys up to 4096 bit. 2011-07-07 11:20:53 +02:00
app-p15.c A bunch of minor changes 2009-12-21 16:19:09 +00:00
app.c Add code to better handle unplugging of a reader. 2009-07-16 15:54:59 +00:00
atr.c Change default gpgsm cipher back to 3DES. 2009-02-09 10:25:41 +00:00
atr.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00
card-common.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00
card-dinsig.c Changed to GPLv3. 2007-07-04 19:49:40 +00:00
card-p15.c Use bin2hex if possible. 2008-11-03 10:54:18 +00:00
card.c Changed to GPLv3. 2007-07-04 19:49:40 +00:00
ccid-driver.c fix wLangId in ccid-driver.c 2012-06-25 10:04:22 +09:00
ccid-driver.h Add new prototypes 2009-07-13 09:59:50 +00:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-02 19:28:02 +01:00
command.c Allow generation of card keys up to 4096 bit. 2011-07-07 11:20:53 +02:00
iso7816.c Fix for extended length Le in decipher 2009-09-03 10:57:23 +00:00
iso7816.h Fix for extended length Le in decipher 2009-09-03 10:57:23 +00:00
Makefile.am Generate the ChangeLog from commit logs. 2011-12-02 19:28:02 +01:00
pcsc-wrapper.c Removed some set but unused variables. 2011-08-04 12:22:04 +02:00
sc-copykeys.c Collected changes 2010-05-03 11:10:49 +00:00
scdaemon.c Add provisions to build with Libgcrypt 1.6. 2012-05-24 10:55:11 +02:00
scdaemon.h Signing using Netkey 3 cards does now work. 2009-03-26 19:27:04 +00:00