mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
added fidocore
This commit is contained in:
parent
f4bb63a728
commit
8f1c67d512
6 changed files with 60 additions and 10 deletions
|
@ -14,6 +14,7 @@
|
|||
#include <stdlib.h>
|
||||
#include "cbor.h"
|
||||
#include "util.h"
|
||||
#include "fidocore.h"
|
||||
|
||||
static void indent(int nestingLevel) {
|
||||
while (nestingLevel--)
|
||||
|
@ -121,10 +122,6 @@ static CborError dumpelm(CborValue *it, bool *got_next, int nestingLevel) {
|
|||
return CborNoError;
|
||||
}
|
||||
|
||||
char *getCmdCodeDescription (uint8_t cmdCode, uint8_t memberNum) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static CborError dumprecursive(uint8_t cmdCode, CborValue *it, bool isMapType, int nestingLevel) {
|
||||
int elmCount = 0;
|
||||
while (!cbor_value_at_end(it)) {
|
||||
|
@ -164,7 +161,7 @@ static CborError dumprecursive(uint8_t cmdCode, CborValue *it, bool isMapType, i
|
|||
if (cmdCode > 0 && nestingLevel == 1 && isMapType && !(elmCount % 2)) {
|
||||
int64_t val;
|
||||
cbor_value_get_int64(it, &val);
|
||||
char *desc = getCmdCodeDescription(cmdCode, val);
|
||||
char *desc = fido2GetCmdMemberDescription(cmdCode, val);
|
||||
if (desc)
|
||||
printf(" (%s)", desc);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue