]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/emv/tlv.c
Code improved for less memory
[proxmark3-svn] / client / emv / tlv.c
index 05de928ebc03c56dc4604f8945b653019acd22dc..5472c47ad82e8debfe51190fed2cd227b5349ca1 100644 (file)
@@ -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);
+}
Impressum, Datenschutz