[Pcsclite-cvs-commit] r1620 - trunk/PCSC/src/PCSC
Ludovic Rousseau
rousseau at costa.debian.org
Wed Aug 17 06:45:01 UTC 2005
Author: rousseau
Date: 2005-08-17 06:45:00 +0000 (Wed, 17 Aug 2005)
New Revision: 1620
Modified:
trunk/PCSC/src/PCSC/reader.h.in
Log:
use __attribute__ ((__packed__)) for 16-bits fields since they are not
aligned on word boundaries
Modified: trunk/PCSC/src/PCSC/reader.h.in
===================================================================
--- trunk/PCSC/src/PCSC/reader.h.in 2005-08-16 06:50:18 UTC (rev 1619)
+++ trunk/PCSC/src/PCSC/reader.h.in 2005-08-17 06:45:00 UTC (rev 1620)
@@ -140,12 +140,13 @@
* bit 4 set if system units are bytes, clear if
* system units are bits,
* bits 3-0 PIN length position in system units */
- int16_t wPINMaxExtraDigit; /* XXYY where XX is minimum PIN size in digits,
- and YY is maximum PIN size in digits */
+ int16_t wPINMaxExtraDigit __attribute__ ((__packed__));
+ /* 0xXXYY where XX is minimum PIN size in digits,
+ and YY is maximum PIN size in digits */
int8_t bEntryValidationCondition; /* Conditions under which PIN entry should
* be considered complete */
- int8_t bNumberMessage; /* Number of messages to display for PIN verification*/
- int16_t wLangId; /* Language for messages */
+ int8_t bNumberMessage; /* Number of messages to display for PIN verification */
+ int16_t wLangId __attribute__ ((__packed__)); /* Language for messages */
int8_t bMsgIndex; /* Message index (should be 00) */
int8_t bTeoPrologue[3]; /* T=1 block prologue field to use (fill with 00) */
int8_t ulDataLength; /* length of Data to be sent to the ICC */
@@ -168,13 +169,14 @@
the current PIN */
int8_t bInsertionOffsetNew; /* Insertion position offset in bytes for
the new PIN */
- int16_t wPINMaxExtraDigit; /* XXYY where XX is minimum PIN size in digits,
- and YY is maximum PIN size in digits */
+ int16_t wPINMaxExtraDigit __attribute__ ((__packed__));
+ /* 0xXXYY where XX is minimum PIN size in digits,
+ and YY is maximum PIN size in digits */
int8_t bConfirmPIN; /* Flags governing need for confirmation of new PIN */
int8_t bEntryValidationCondition; /* Conditions under which PIN entry should
* be considered complete */
int8_t bNumberMessage; /* Number of messages to display for PIN verification*/
- int16_t wLangId; /* Language for messages */
+ int16_t wLangId __attribute__ ((__packed__)); /* Language for messages */
int8_t bMsgIndex1; /* index of 1st prompting message */
int8_t bMsgIndex2; /* index of 2d prompting message */
int8_t bMsgIndex3; /* index of 3d prompting message */
More information about the Pcsclite-cvs-commit
mailing list