#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
+#include <jansson.h>
#include "util.h"
#include "common.h"
#include "ui.h"
TT_QVSDCMCHIP,
TT_CDA,
};
+extern char *TransactionTypeStr[];
typedef struct {
uint8_t CLA;
extern void SetAPDULogging(bool logging);
+// exchange
+extern int EMVExchange(bool LeaveFieldON, sAPDU apdu, uint8_t *Result, size_t MaxResultLen, size_t *ResultLen, uint16_t *sw, struct tlvdb *tlv);
+
+
// search application
extern int EMVSearchPSE(bool ActivateField, bool LeaveFieldON, bool decodeTLV, struct tlvdb *tlv);
extern int EMVSearch(bool ActivateField, bool LeaveFieldON, bool decodeTLV, struct tlvdb *tlv);
extern int trDDA(bool decodeTLV, struct tlvdb *tlv);
extern int trCDA(struct tlvdb *tlv, struct tlvdb *ac_tlv, struct tlv *pdol_data_tlv, struct tlv *ac_data_tlv);
+extern int RecoveryCertificates(struct tlvdb *tlvRoot, json_t *root);
+
#endif