Emv scan via contact interface (#789)

* share getATR from smartcard.h/c
* remove duplicates in tlv.h and add get_uint_8
* check ATS/ATR length
This commit is contained in:
Oleg Moiseenko 2019-02-21 23:02:22 +02:00 committed by pwpiwi
commit 0b6efd01ec
5 changed files with 151 additions and 28 deletions

View file

@ -13,8 +13,10 @@
#include <stdint.h>
#include <stdbool.h>
#include "smartcard.h"
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);
#endif