mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-04-02 02:19:57 +08:00
fix working with config files
This commit is contained in:
parent
c83c62855b
commit
08809f0c0d
1 changed files with 4 additions and 5 deletions
|
@ -378,8 +378,7 @@ static int CmdHFFidoRegister(const char *cmd) {
|
||||||
JsonSaveBufAsHexCompact(root, "KeyHandle", &buf[67], keyHandleLen);
|
JsonSaveBufAsHexCompact(root, "KeyHandle", &buf[67], keyHandleLen);
|
||||||
JsonSaveBufAsHexCompact(root, "DER", &buf[67 + keyHandleLen], derLen);
|
JsonSaveBufAsHexCompact(root, "DER", &buf[67 + keyHandleLen], derLen);
|
||||||
|
|
||||||
//sprintf(filename, "hf-fido2-params");
|
res = saveFileJSONrootEx(filename, root, JSON_INDENT(2), verbose, true);
|
||||||
res = saveFileJSONroot(filename, root, JSON_INDENT(2), verbose);
|
|
||||||
(void)res;
|
(void)res;
|
||||||
}
|
}
|
||||||
json_decref(root);
|
json_decref(root);
|
||||||
|
@ -635,7 +634,7 @@ static int CmdHFFidoAuthenticate(const char *cmd) {
|
||||||
JsonSaveInt(root, "Counter", cntr);
|
JsonSaveInt(root, "Counter", cntr);
|
||||||
|
|
||||||
sprintf(filename, "hf-fido2-params");
|
sprintf(filename, "hf-fido2-params");
|
||||||
res = saveFileJSONroot(filename, root, JSON_INDENT(2), verbose);
|
res = saveFileJSONrootEx(filename, root, JSON_INDENT(2), verbose, true);
|
||||||
(void)res;
|
(void)res;
|
||||||
}
|
}
|
||||||
json_decref(root);
|
json_decref(root);
|
||||||
|
@ -755,7 +754,7 @@ static int CmdHFFido2MakeCredential(const char *cmd) {
|
||||||
|
|
||||||
// new file name..
|
// new file name..
|
||||||
sprintf(filename, "hf-fido2");
|
sprintf(filename, "hf-fido2");
|
||||||
res = saveFileJSONroot(filename, root, JSON_INDENT(2), verbose);
|
res = saveFileJSONrootEx(filename, root, JSON_INDENT(2), verbose, true);
|
||||||
(void)res;
|
(void)res;
|
||||||
json_decref(root);
|
json_decref(root);
|
||||||
return res;
|
return res;
|
||||||
|
@ -875,7 +874,7 @@ static int CmdHFFido2GetAssertion(const char *cmd) {
|
||||||
|
|
||||||
// new file name..
|
// new file name..
|
||||||
sprintf(filename, "hf-fido2");
|
sprintf(filename, "hf-fido2");
|
||||||
res = saveFileJSONroot(filename, root, JSON_INDENT(2), verbose);
|
res = saveFileJSONrootEx(filename, root, JSON_INDENT(2), verbose, true);
|
||||||
(void)res;
|
(void)res;
|
||||||
json_decref(root);
|
json_decref(root);
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Add table
Reference in a new issue