mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
refactor fido2 commands to use load and save fcts from fileutils.c. They will now load from /client/resources and save a new file in working dir
This commit is contained in:
parent
25cdc321cd
commit
cbf045dddb
4 changed files with 192 additions and 245 deletions
|
@ -67,6 +67,7 @@ typedef enum {
|
|||
jsfEM4x05,
|
||||
jsfEM4x69,
|
||||
jsfEM4x50,
|
||||
jsfFido,
|
||||
} JSONFileType;
|
||||
|
||||
typedef enum {
|
||||
|
@ -121,7 +122,7 @@ int saveFileEML(const char *preferredName, uint8_t *data, size_t datalen, size_t
|
|||
*/
|
||||
int saveFileJSON(const char *preferredName, JSONFileType ftype, uint8_t *data, size_t datalen, void (*callback)(json_t *));
|
||||
int saveFileJSONex(const char *preferredName, JSONFileType ftype, uint8_t *data, size_t datalen, bool verbose, void (*callback)(json_t *));
|
||||
|
||||
int saveFileJSONroot(const char *preferredName, void *root, size_t flags, bool verbose);
|
||||
/** STUB
|
||||
* @brief Utility function to save WAVE data to a file. This method takes a preferred name, but if that
|
||||
* file already exists, it tries with another name until it finds something suitable.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue