mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-19 12:59:44 -07:00
share getATR from smartcard.h/c
This commit is contained in:
parent
7afa751a96
commit
46a9c98004
2 changed files with 3 additions and 1 deletions
|
@ -311,7 +311,7 @@ static int PrintATR(uint8_t *atr, size_t atrlen) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool smart_getATR(smart_card_atr_t *card)
|
bool smart_getATR(smart_card_atr_t *card)
|
||||||
{
|
{
|
||||||
if (UseAlternativeSmartcardReader) {
|
if (UseAlternativeSmartcardReader) {
|
||||||
return pcscGetATR(card);
|
return pcscGetATR(card);
|
||||||
|
|
|
@ -13,8 +13,10 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include "smartcard.h"
|
||||||
|
|
||||||
extern int CmdSmartcard(const char *Cmd);
|
extern int CmdSmartcard(const char *Cmd);
|
||||||
|
extern bool smart_getATR(smart_card_atr_t *card);
|
||||||
extern int ExchangeAPDUSC(uint8_t *datain, int datainlen, bool activateCard, bool leaveSignalON, uint8_t *dataout, int maxdataoutlen, int *dataoutlen);
|
extern int ExchangeAPDUSC(uint8_t *datain, int datainlen, bool activateCard, bool leaveSignalON, uint8_t *dataout, int maxdataoutlen, int *dataoutlen);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue