refactoring and some functions in cbortools

This commit is contained in:
merlokk
2018-11-24 23:36:02 +02:00
parent 6c63e74ffb
commit 1a0f7e93de
3 changed files with 44 additions and 5 deletions

View File

@@ -739,7 +739,7 @@ int MakeCredentionalParseRes(uint8_t *data, size_t dataLen, bool verbose, bool s
}
if (!strcmp(key, "x5c")) {
res = CborGetArrayBinStringValue(&mapsmt, der, sizeof(der), &derLen, NULL);
res = CborGetArrayBinStringValue(&mapsmt, der, sizeof(der), &derLen);
cbor_check(res);
PrintAndLog("DER [%d]: %s", derLen, sprint_hex(der, derLen));
}