mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-06 04:51:36 -07:00
fix fct name mismatch
This commit is contained in:
parent
5107b7ce04
commit
f63ba3f31a
4 changed files with 9 additions and 9 deletions
|
@ -101,9 +101,9 @@ void Dbhexdump(int len, const uint8_t *d, bool bAsci) {
|
||||||
d += 16;
|
d += 16;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}void print_result(const char *name, const uint8_t *d, size_t
|
||||||
|
|
||||||
void print_result(const char *name, const uint8_t *d, size_t n) {
|
n) {
|
||||||
|
|
||||||
const uint8_t *p = d;
|
const uint8_t *p = d;
|
||||||
uint16_t tmp = n & 0xFFF0;
|
uint16_t tmp = n & 0xFFF0;
|
||||||
|
@ -129,7 +129,7 @@ void print_result(const char *name, const uint8_t *d, size_t n) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prints message and hexdump
|
// Prints message and hexdump
|
||||||
void print_dbg(char *msg, uint8_t *d, uint16_t n) {
|
void print_dbg(const char *msg, const uint8_t *d, uint16_t n) {
|
||||||
if (g_dbglevel == DBG_DEBUG) {
|
if (g_dbglevel == DBG_DEBUG) {
|
||||||
print_result(msg, d, n);
|
print_result(msg, d, n);
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,8 +27,8 @@ void DbpStringEx(uint32_t flags, const char *src, size_t srclen);
|
||||||
void Dbprintf(const char *fmt, ...);
|
void Dbprintf(const char *fmt, ...);
|
||||||
void DbprintfEx(uint32_t flags, const char *fmt, ...);
|
void DbprintfEx(uint32_t flags, const char *fmt, ...);
|
||||||
void Dbhexdump(int len, const uint8_t *d, bool bAsci);
|
void Dbhexdump(int len, const uint8_t *d, bool bAsci);
|
||||||
void print_result(const char *name, const uint8_t *buf, size_t len);
|
void print_result(const char *name, const uint8_t *d, size_t n);
|
||||||
void print_dbg(char *msg, uint8_t *d, uint16_t n);
|
void print_dbg(const char *msg, const uint8_t *d, uint16_t n);
|
||||||
//void PrintToSendBuffer(void);
|
//void PrintToSendBuffer(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1582,7 +1582,7 @@ static void CodeAndTransmit14443bAsReader(const uint8_t *cmd, int len, uint32_t
|
||||||
/* Sends an APDU to the tag
|
/* Sends an APDU to the tag
|
||||||
* TODO: check CRC and preamble
|
* TODO: check CRC and preamble
|
||||||
*/
|
*/
|
||||||
int iso14443b_apdu(uint8_t const *msg, size_t msg_len, bool send_chaining, void *rxdata, uint16_t rxmaxlen, uint8_t *response_byte, uint16_t *reponselen) {
|
int iso14443b_apdu(uint8_t const *msg, size_t msg_len, bool send_chaining, void *rxdata, uint16_t rxmaxlen, uint8_t *response_byte, uint16_t *responselen) {
|
||||||
|
|
||||||
uint8_t real_cmd[msg_len + 4];
|
uint8_t real_cmd[msg_len + 4];
|
||||||
|
|
||||||
|
@ -1693,8 +1693,8 @@ int iso14443b_apdu(uint8_t const *msg, size_t msg_len, bool send_chaining, void
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reponselen) {
|
if (responselen) {
|
||||||
*reponselen = len;
|
*responselen = len;
|
||||||
}
|
}
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void iso14443b_setup(void);
|
void iso14443b_setup(void);
|
||||||
int iso14443b_apdu(uint8_t const *msg, size_t msg_len, bool send_chaining, void *rxdata, uint16_t rxmaxlen, uint8_t *res, uint16_t *responselen);
|
int iso14443b_apdu(uint8_t const *msg, size_t msg_len, bool send_chaining, void *rxdata, uint16_t rxmaxlen, uint8_t *response_byte, uint16_t *responselen);
|
||||||
|
|
||||||
int iso14443b_select_card(iso14b_card_select_t *card);
|
int iso14443b_select_card(iso14b_card_select_t *card);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue