mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
added numberOfCredentials
This commit is contained in:
parent
ac5448a117
commit
d253364d2c
1 changed files with 10 additions and 0 deletions
|
@ -788,6 +788,16 @@ int FIDO2GetAssertionParseRes(json_t *root, uint8_t *data, size_t dataLen, bool
|
||||||
}
|
}
|
||||||
|
|
||||||
free(ubuf);
|
free(ubuf);
|
||||||
|
|
||||||
|
// numberOfCredentials
|
||||||
|
res = CborMapGetKeyById(&parser, &map, data, dataLen, 5);
|
||||||
|
if (res) {
|
||||||
|
PrintAndLog("numberOfCredentials: 1 by default");
|
||||||
|
} else {
|
||||||
|
int64_t numberOfCredentials = 0;
|
||||||
|
cbor_value_get_int64(&map, &numberOfCredentials);
|
||||||
|
PrintAndLog("numberOfCredentials: %lld", (long long)numberOfCredentials);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue