2
0

Make MPW_JSON optional as documented.

This commit is contained in:
Maarten Billemont
2017-08-31 11:48:10 -04:00
parent fad0f5e5dd
commit 627144b583
2 changed files with 12 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ time_t mpw_mktime(
return false;
}
#if MPW_JSON
json_object *mpw_get_json_section(
json_object *obj, const char *section) {
@@ -95,6 +96,7 @@ bool mpw_get_json_boolean(
return json_object_get_boolean( json_value ) == TRUE;
}
#endif
bool mpw_update_masterKey(MPMasterKey *masterKey, MPAlgorithmVersion *masterKeyAlgorithm, MPAlgorithmVersion targetKeyAlgorithm,
const char *fullName, const char *masterPassword) {