1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00
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
..
2011-08-04 12:22:04 +02:00
2010-05-03 11:10:49 +00:00
2009-05-08 15:07:45 +00:00
2009-07-10 10:15:33 +00:00
2009-05-08 15:07:45 +00:00
2009-12-21 16:19:09 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2008-11-03 10:54:18 +00:00
2007-07-04 19:49:40 +00:00
2012-06-25 10:04:22 +09:00
2009-07-13 09:59:50 +00:00
2010-05-03 11:10:49 +00:00