|
@@ -72,6 +72,10 @@ MOCK_DECL(char *,
|
|
|
* get_datadir_fname2_suffix. */
|
|
|
#define get_datadir_fname2(sub1,sub2) \
|
|
|
get_datadir_fname2_suffix((sub1), (sub2), NULL)
|
|
|
+/** Return a newly allocated string containing datadir/sub1 relative to
|
|
|
+ * opts. See get_datadir_fname2_suffix. */
|
|
|
+#define options_get_datadir_fname(opts,sub1) \
|
|
|
+ options_get_datadir_fname2_suffix((opts),(sub1), NULL, NULL)
|
|
|
/** Return a newly allocated string containing datadir/sub1/sub2 relative to
|
|
|
* opts. See get_datadir_fname2_suffix. */
|
|
|
#define options_get_datadir_fname2(opts,sub1,sub2) \
|
|
@@ -83,6 +87,8 @@ MOCK_DECL(char *,
|
|
|
|
|
|
int using_default_dir_authorities(const or_options_t *options);
|
|
|
|
|
|
+int create_keys_directory(const or_options_t *options);
|
|
|
+
|
|
|
int check_or_create_data_subdir(const char *subdir);
|
|
|
int write_to_data_subdir(const char* subdir, const char* fname,
|
|
|
const char* str, const char* descr);
|