mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-20 03:48:33 +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, "DER", &buf[67 + keyHandleLen], derLen);
|
||||
|
||||
//sprintf(filename, "hf-fido2-params");
|
||||
res = saveFileJSONroot(filename, root, JSON_INDENT(2), verbose);
|
||||
res = saveFileJSONrootEx(filename, root, JSON_INDENT(2), verbose, true);
|
||||
(void)res;
|
||||
}
|
||||
json_decref(root);
|
||||
|
@ -635,7 +634,7 @@ static int CmdHFFidoAuthenticate(const char *cmd) {
|
|||
JsonSaveInt(root, "Counter", cntr);
|
||||
|
||||
sprintf(filename, "hf-fido2-params");
|
||||
res = saveFileJSONroot(filename, root, JSON_INDENT(2), verbose);
|
||||
res = saveFileJSONrootEx(filename, root, JSON_INDENT(2), verbose, true);
|
||||
(void)res;
|
||||
}
|
||||
json_decref(root);
|
||||
|
@ -755,7 +754,7 @@ static int CmdHFFido2MakeCredential(const char *cmd) {
|
|||
|
||||
// new file name..
|
||||
sprintf(filename, "hf-fido2");
|
||||
res = saveFileJSONroot(filename, root, JSON_INDENT(2), verbose);
|
||||
res = saveFileJSONrootEx(filename, root, JSON_INDENT(2), verbose, true);
|
||||
(void)res;
|
||||
json_decref(root);
|
||||
return res;
|
||||
|
@ -875,7 +874,7 @@ static int CmdHFFido2GetAssertion(const char *cmd) {
|
|||
|
||||
// new file name..
|
||||
sprintf(filename, "hf-fido2");
|
||||
res = saveFileJSONroot(filename, root, JSON_INDENT(2), verbose);
|
||||
res = saveFileJSONrootEx(filename, root, JSON_INDENT(2), verbose, true);
|
||||
(void)res;
|
||||
json_decref(root);
|
||||
return res;
|
||||
|
|
Loading…
Add table
Reference in a new issue