fido info command completed

This commit is contained in:
merlokk 2018-11-17 18:39:21 +02:00
commit 12b1289191
3 changed files with 52 additions and 31 deletions

View file

@ -147,10 +147,18 @@ int CmdHFFidoInfo(const char *cmd) {
return 0;
}
PrintAndLog("FIDO2 version: (%d)", len);
dump_buffer((const unsigned char *)buf, len, NULL, 0);
TinyCborPrintFIDOPackage(fido2CmdGetInfo, &buf[1], len - 1);
if (len > 1) {
// if (false) {
// PrintAndLog("FIDO2 version: (len=%d)", len);
// dump_buffer((const unsigned char *)buf, len, NULL, 0);
// }
PrintAndLog("FIDO2 version CBOR decoded:");
TinyCborPrintFIDOPackage(fido2CmdGetInfo, &buf[1], len - 1);
} else {
PrintAndLog("FIDO2 version length error");
}
return 0;
}