Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

atrhandler.c File Reference

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

#include "config.h"
#include <syslog.h>
#include <string.h>
#include "misc.h"
#include "pcsclite.h"
#include "debuglog.h"
#include "atrhandler.h"

Go to the source code of this file.

Functions

short ATRDecodeAtr (PSMARTCARD_EXTENSION psExtension, PUCHAR pucAtr, DWORD dwLength)
 parse an ATR


Detailed Description

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

Note:
use ./configure --enable-debugatr to enable debug messages to be logged.

Definition in file atrhandler.c.


Function Documentation

short ATRDecodeAtr PSMARTCARD_EXTENSION  psExtension,
PUCHAR  pucAtr,
DWORD  dwLength
 

parse an ATR

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

Return values:
0 Atr must have TS and T0

Return values:
0 Unable to decode TS byte

Return values:
0 Unable to decode LNS

Return values:
0 Unable do decode T protocol

Return values:
0 Maximum attribute size

Return values:
1 Success

Definition at line 44 of file atrhandler.c.


Generated on Fri Jan 26 22:56:20 2007 for pcsc-lite by  doxygen 1.3.9.1