Use json functions from libsudo_util in cvtsudoers.

This commit is contained in:
Todd C. Miller
2020-02-08 09:11:02 -07:00
parent d25ce46c56
commit c92f39ed3d
4 changed files with 241 additions and 477 deletions

View File

@@ -68,3 +68,6 @@ __dso_public bool sudo_json_close_array_v1(struct json_container *json);
__dso_public bool sudo_json_add_value_v1(struct json_container *json, const char *name, struct json_value *value);
#define sudo_json_add_value(_a, _b, _c) sudo_json_add_value_v1((_a), (_b), (_c))
__dso_public bool sudo_json_add_value_as_object_v1(struct json_container *json, const char *name, struct json_value *value);
#define sudo_json_add_value_as_object(_a, _b, _c) sudo_json_add_value_as_object_v1((_a), (_b), (_c))