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:
-
- Return values:
-
| 0 | Unable do decode T protocol |
- Return values:
-
- Return values:
-
Definition at line 44 of file atrhandler.c. |
Generated on Fri Jan 26 22:54:55 2007 for pcsc-lite by
1.3.9.1