diff options
author | Suphanat Chunhapanya <haxx.pop@gmail.com> | 2019-01-15 12:16:23 +0700 |
---|---|---|
committer | Suphanat Chunhapanya <haxx.pop@gmail.com> | 2019-01-24 04:31:18 +0700 |
commit | 238a9080c6e80856145210a374b35e613d4cb11e (patch) | |
tree | 315e8008b755f02ba4150bd217db8caaa0b56264 /src/app/config/config.h | |
parent | 8de735f0681970ff688cb5e775dae812ed27aa62 (diff) | |
download | tor-238a9080c6e80856145210a374b35e613d4cb11e.tar.gz tor-238a9080c6e80856145210a374b35e613d4cb11e.zip |
hs-v3: add an option param to safe log functions
We add an option param to safe_str and safe_str_client because in
some case we need to use those functions before global_options is set.
Diffstat (limited to 'src/app/config/config.h')
-rw-r--r-- | src/app/config/config.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/app/config/config.h b/src/app/config/config.h index a169cfd451..6b23b3934f 100644 --- a/src/app/config/config.h +++ b/src/app/config/config.h @@ -143,6 +143,16 @@ MOCK_DECL(char *, #define get_cachedir_fname_suffix(sub1, suffix) \ options_get_cachedir_fname2_suffix(get_options(), (sub1), NULL, (suffix)) +#define safe_str_client(address) \ + safe_str_client_opts(NULL, address) +#define safe_str(address) \ + safe_str_opts(NULL, address) + +const char * safe_str_client_opts(const or_options_t *options, + const char *address); +const char * safe_str_opts(const or_options_t *options, + const char *address); + int using_default_dir_authorities(const or_options_t *options); int create_keys_directory(const or_options_t *options); |