mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-21 05:43:23 -07:00
Emv scan via contact interface (#789)
* share getATR from smartcard.h/c * remove duplicates in tlv.h and add get_uint_8 * check ATS/ATR length
This commit is contained in:
parent
fc52fbd42f
commit
0b6efd01ec
5 changed files with 151 additions and 28 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue