summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorliuwentan <[email protected]>2023-05-04 17:10:19 +0800
committerliuwentan <[email protected]>2023-05-04 17:10:19 +0800
commit33015d5aac355773f302151b2f8a7f8986acd261 (patch)
treece3f68a6c82aa2650b262ab68a3a162fe7b96537 /include
parentf087a4382d0b4831aebfadd6c165dba848084a3c (diff)
support parse encrypted json config
Diffstat (limited to 'include')
-rw-r--r--include/maat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/maat.h b/include/maat.h
index 0ba7da5..80c3e22 100644
--- a/include/maat.h
+++ b/include/maat.h
@@ -99,7 +99,15 @@ int maat_options_set_logger(struct maat_options *opts, const char *log_path, enu
int maat_options_set_iris(struct maat_options *opts, const char *full_directory,
const char *increment_directory);
+
int maat_options_set_json_file(struct maat_options *opts, const char *json_filename);
+
+/* Indicate whether the JSON file is compressed by gzip */
+int maat_options_set_json_file_gzip_flag(struct maat_options *opts, int gzip_flag);
+
+/* Specify the decryption key for the JSON file to be decrypted */
+int maat_options_set_json_file_decrypt_key(struct maat_options *opts, const char *decrypt_key);
+
int maat_options_set_redis(struct maat_options *opts, const char *redis_ip,
uint16_t redis_port, int redis_db);