atrhandler.h File Reference

This keeps track of smartcard protocols, timing issues and Answer to Reset ATR handling. More...

Go to the source code of this file.

Data Structures

struct  _SMARTCARD_EXTENSION
struct  _SMARTCARD_EXTENSION::_ATR
struct  _SMARTCARD_EXTENSION::_CardCapabilities
struct  _SMARTCARD_EXTENSION::_CardCapabilities::_PtsData
struct  _SMARTCARD_EXTENSION::_CardCapabilities::_T1
struct  _SMARTCARD_EXTENSION::_CardCapabilities::_T0

Defines

#define SCARD_CONVENTION_DIRECT   0x0001
#define SCARD_CONVENTION_INVERSE   0x0002

Typedefs

typedef struct _SMARTCARD_EXTENSION SMARTCARD_EXTENSION
typedef struct
_SMARTCARD_EXTENSION * 
PSMARTCARD_EXTENSION

Functions

short ATRDecodeAtr (PSMARTCARD_EXTENSION psExtension, PUCHAR pucAtr, DWORD dwLength)
 Uncomment the following for ATR debugging or use .


Detailed Description

This keeps track of smartcard protocols, timing issues and Answer to Reset ATR handling.

Definition in file atrhandler.h.


Function Documentation

short ATRDecodeAtr ( PSMARTCARD_EXTENSION  psExtension,
PUCHAR  pucAtr,
DWORD  dwLength 
)

Uncomment the following for ATR debugging or use .

/configure --enable-debugatr parse an ATR

Parameters:
[out] psExtension 
[in] pucAtr ATR
[in] dwLength ATR length
Returns:

Return values:
0 Atr must have TS and T0
0 Unable to decode TS byte
0 Unable to decode LNS
0 Unable do decode T protocol
0 Maximum attribute size
1 Success

Definition at line 44 of file atrhandler.c.

References MAX_ATR_SIZE, SCARD_PROTOCOL_T0, SCARD_PROTOCOL_T1, SCARD_PROTOCOL_T15, and SCARD_PROTOCOL_UNDEFINED.


Generated on Wed Oct 8 02:24:24 2008 for pcsc-lite by  doxygen 1.5.6