summaryrefslogtreecommitdiffstats
path: root/common/util.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-11-04 15:36:52 +0100
committerWerner Koch <wk@gnupg.org>2020-11-04 16:13:04 +0100
commitdabc314b71378f585fac2753149f3358e32ec621 (patch)
tree794801571013593468a401a2622e52705fbf5b36 /common/util.h
parentw32: Add another pinentry search path (diff)
downloadgnupg2-dabc314b71378f585fac2753149f3358e32ec621.tar.xz
gnupg2-dabc314b71378f585fac2753149f3358e32ec621.zip
common: Fix duplicate implementation of try_make_homedir.
* g10/openfile.c (try_make_homedir): Move core of the code to ... * common/homedir.c (gnupg_maybe_make_homedir): new. * sm/keydb.c (try_make_homedir): Implement using new function. * common/homedir.c: Include i18n.h. * po/POTFILES.in: Add common/homedir.c. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'common/util.h')
-rw-r--r--common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h
index 7217a5208..18217af7b 100644
--- a/common/util.h
+++ b/common/util.h
@@ -260,6 +260,7 @@ const char *get_keyalgo_string (enum gcry_pk_algos algo,
const char *standard_homedir (void);
const char *default_homedir (void);
void gnupg_set_homedir (const char *newdir);
+void gnupg_maybe_make_homedir (const char *fname, int quiet);
const char *gnupg_homedir (void);
int gnupg_default_homedir_p (void);
const char *gnupg_daemon_rootdir (void);