X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/7527c2bdd821ac194ed362f327b5e6b7aef7d1bb..1f61f19767c7640a75f123a42dec732cf4e6c5aa:/client/emv/tlv.c?ds=inline diff --git a/client/emv/tlv.c b/client/emv/tlv.c index 05de928e..5472c47a 100644 --- a/client/emv/tlv.c +++ b/client/emv/tlv.c @@ -588,3 +588,9 @@ bool tlv_get_int(const struct tlv *etlv, int *value) } return false; } + +bool tlvdb_get_uint8(struct tlvdb *tlvRoot, tlv_tag_t tag, uint8_t *value) +{ + const struct tlv *tlvelm = tlvdb_get(tlvRoot, tag, NULL); + return tlv_get_uint8(tlvelm, value); +}