[Pcsclite-cvs-commit] r2113 - trunk/PCSC/src/PCSC

Ludovic Rousseau rousseau at costa.debian.org
Mon Jul 31 09:51:58 UTC 2006


Author: rousseau
Date: 2006-07-31 09:51:57 +0000 (Mon, 31 Jul 2006)
New Revision: 2113

Modified:
   trunk/PCSC/src/PCSC/reader.h.in
Log:
document that the 4 bytes field value in PCSC_TLV_STRUCTURE is always in
big endian as documented in PCSC v2 part 10 ch 2.2 page 2. You can use
ntohl() to convert the value.

Thanks to Ulrich Vogl for the bug report


Modified: trunk/PCSC/src/PCSC/reader.h.in
===================================================================
--- trunk/PCSC/src/PCSC/reader.h.in	2006-07-30 11:58:41 UTC (rev 2112)
+++ trunk/PCSC/src/PCSC/reader.h.in	2006-07-31 09:51:57 UTC (rev 2113)
@@ -130,7 +130,7 @@
 {
 	uint8_t tag;
 	uint8_t length;
-	uint32_t value;
+	uint32_t value;	/* This value is always in BIG ENDIAN format as documented in PCSC v2 part 10 ch 2.2 page 2. You can use ntohl() for example */
 } PCSC_TLV_STRUCTURE;
 
 /* the wLangId and wPINMaxExtraDigit are 16-bits long so are subject to byte




More information about the Pcsclite-cvs-commit mailing list