X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/bed3e4c20d2d885dbc560d21c1e954058145ae51..43912d6349ce08bb5d299b1602fba30e0354eaaa:/client/emv/emvcore.c?ds=inline diff --git a/client/emv/emvcore.c b/client/emv/emvcore.c index 6f8892fe..8dc93259 100644 --- a/client/emv/emvcore.c +++ b/client/emv/emvcore.c @@ -10,20 +10,20 @@ #include "emvcore.h" -static bool print_cb(void *data, const struct tlv *tlv) { - emv_tag_dump(tlv, stdout); - dump_buffer(tlv->value, tlv->len, stdout); +static bool print_cb(void *data, const struct tlv *tlv, int level) { + emv_tag_dump(tlv, stdout, level); + dump_buffer(tlv->value, tlv->len, stdout, level); return true; } void TLVPrintFromBuffer(uint8_t *data, int datalen) { struct tlvdb *t = NULL; - t = tlvdb_parse(data, datalen); + t = tlvdb_parse_multi(data, datalen); if (t) { PrintAndLog("TLV decoded:"); - tlvdb_visit(t, print_cb, NULL); + tlvdb_visit(t, print_cb, NULL, 0); tlvdb_free(t); } else { PrintAndLog("TLV ERROR: Can't parse response as TLV tree.");