#include "config.h"
#include <string.h>
#include "misc.h"
#include "pcsclite.h"
#include "debuglog.h"
#include "atrhandler.h"
Include dependency graph for atrhandler.c:
Go to the source code of this file.
Functions | |
short | ATRDecodeAtr (PSMARTCARD_EXTENSION psExtension, PUCHAR pucAtr, DWORD dwLength) |
parse an ATR |
Definition in file atrhandler.c.
short ATRDecodeAtr | ( | PSMARTCARD_EXTENSION | psExtension, | |
PUCHAR | pucAtr, | |||
DWORD | dwLength | |||
) |
parse an ATR
[out] | psExtension | |
[in] | pucAtr | ATR |
[in] | dwLength | ATR length |
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 43 of file atrhandler.c.
References _SMARTCARD_EXTENSION::ATR, _SMARTCARD_EXTENSION::_CardCapabilities::AvailableProtocols, _SMARTCARD_EXTENSION::CardCapabilities, _SMARTCARD_EXTENSION::_CardCapabilities::Convention, _SMARTCARD_EXTENSION::_CardCapabilities::CurrentProtocol, _SMARTCARD_EXTENSION::_ATR::HistoryLength, _SMARTCARD_EXTENSION::_ATR::HistoryValue, _SMARTCARD_EXTENSION::_ATR::Length, Log2, Log3, Log4, Log9, LogXxd, MAX_ATR_SIZE, SCARD_CONVENTION_DIRECT, SCARD_CONVENTION_INVERSE, SCARD_PROTOCOL_T0, SCARD_PROTOCOL_T1, SCARD_PROTOCOL_T15, SCARD_PROTOCOL_UNDEFINED, and _SMARTCARD_EXTENSION::_ATR::Value.
Referenced by IFDPowerICC(), IFDStatusICC(), PHGetAvailableProtocols(), and PHGetDefaultProtocol().