]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/emv/emvcore.h
FIDO U2F NFC authenticators (#697)
[proxmark3-svn] / client / emv / emvcore.h
index 94be4fcf36b8949fc1bd641448f4ff3e689594b8..fa7a4db8abf3237e6e262bdf64ff7183a529317a 100644 (file)
@@ -16,6 +16,7 @@
 #include <stdlib.h>
 #include <inttypes.h>
 #include <string.h>
+#include <jansson.h>
 #include "util.h"
 #include "common.h"
 #include "ui.h"
@@ -37,6 +38,7 @@ enum TransactionType {
        TT_QVSDCMCHIP,
        TT_CDA,
 };
+extern char *TransactionTypeStr[];
 
 typedef struct {
        uint8_t CLA;
@@ -68,6 +70,10 @@ extern struct tlvdb *GetdCVVRawFromTrack2(const struct tlv *track2);
 
 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);
@@ -90,6 +96,8 @@ extern int trSDA(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
 
 
Impressum, Datenschutz