mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 18:24:27 +08:00
fix fido2 response structure
This commit is contained in:
parent
563086c935
commit
8201526f6e
2 changed files with 7 additions and 2 deletions
|
@ -141,9 +141,14 @@ int CmdHFFidoInfo(const char *cmd) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(buf[0]) {
|
||||||
|
PrintAndLog("FIDO2 ger version error: %d", buf[0]);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
PrintAndLog("FIDO2 version: (%d)", len);
|
PrintAndLog("FIDO2 version: (%d)", len);
|
||||||
dump_buffer((const unsigned char *)buf, len, NULL, 0);
|
dump_buffer((const unsigned char *)buf, len, NULL, 0);
|
||||||
TinyCborPrintFIDOPackage(buf, len);
|
TinyCborPrintFIDOPackage(&buf[1], len - 1);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -190,7 +190,7 @@ int TinyCborInit(uint8_t *data, size_t length, CborValue *cb) {
|
||||||
int TinyCborPrintFIDOPackage(uint8_t *data, size_t length) {
|
int TinyCborPrintFIDOPackage(uint8_t *data, size_t length) {
|
||||||
CborValue cb;
|
CborValue cb;
|
||||||
int res;
|
int res;
|
||||||
res = TinyCborInit(&data[1], length - 1, &cb);
|
res = TinyCborInit(data, length, &cb);
|
||||||
if (res)
|
if (res)
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue