You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.5 KiB
34 lines
1.5 KiB
diff -ur a/src/json_regex.c b/src/json_regex.c
|
|
--- a/src/json_regex.c 2020-05-05 06:50:49.643196630 -0500
|
|
+++ b/src/json_regex.c 2020-05-05 06:59:32.722322215 -0500
|
|
@@ -64,7 +64,7 @@
|
|
json_object_object_add(jregex_agent_response, "Username", json_object_new_string("^([[:print:]]*)$"));
|
|
json_object_object_add(jregex_agent_response, "Password", json_object_new_string("^([[:print:]]*)$"));
|
|
|
|
- jregex_agent_retry_response = json_object_new_boolean(TRUE);
|
|
+ jregex_agent_retry_response = json_object_new_boolean(1);
|
|
|
|
// See commands.c __cmd_config_service for a better idea of the format.
|
|
jregex_config_service = json_object_new_object();
|
|
@@ -94,7 +94,7 @@
|
|
json_object_array_add(arr, json_object_new_string("^([[:print:]]*)$"));
|
|
json_object_object_add(tmp, key_serv_proxy_excludes, arr);
|
|
json_object_object_add(opt, key_serv_proxy_config, tmp);
|
|
- json_object_object_add(opt, key_serv_autoconnect, json_object_new_boolean(TRUE));
|
|
+ json_object_object_add(opt, key_serv_autoconnect, json_object_new_boolean(1));
|
|
arr = json_object_new_array();
|
|
json_object_array_add(arr, json_object_new_string("^([[:print:]]*)$"));
|
|
json_object_object_add(opt, key_serv_domains_config, arr);
|
|
diff -ur a/src/json_utils.c b/src/json_utils.c
|
|
--- a/src/json_utils.c 2020-05-05 06:50:49.643196630 -0500
|
|
+++ b/src/json_utils.c 2020-05-05 06:59:46.140940810 -0500
|
|
@@ -83,7 +83,7 @@
|
|
key_is_trusted = json_object_object_get_ex(jtrusted, key,
|
|
&tmp_trusted);
|
|
|
|
- if (key_is_trusted == FALSE)
|
|
+ if (key_is_trusted == 1)
|
|
return false;
|
|
|
|
res = __json_type_dispatch(val, tmp_trusted);
|