summaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-08-14 17:14:21 +0200
committerWerner Koch <wk@gnupg.org>2014-08-14 17:15:50 +0200
commitc4b60cdae8dbf68206fd105fd09adeb61a9dafe4 (patch)
treee63d85f116ffdae27d76ff2bab4c32df9c323646 /sm/gpgsm.h
parentbuild: Yet another autogen.sh --find-version change. (diff)
downloadgnupg2-c4b60cdae8dbf68206fd105fd09adeb61a9dafe4.tar.xz
gnupg2-c4b60cdae8dbf68206fd105fd09adeb61a9dafe4.zip
sm: Create homedir and lock empty keybox creation.
* sm/gpgsm.h (opt): Add field "no_homedir_creation". * sm/gpgsm.c (main): Set it if --no-options is used. * sm/keydb.c (try_make_homedir): New. Similar to the one from g10/openfile.c. (maybe_create_keybox): New. Similar to the one from g10/keydb.c. (keydb_add_resource): Replace some code by maybe_create_keybox.
Diffstat (limited to 'sm/gpgsm.h')
-rw-r--r--sm/gpgsm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sm/gpgsm.h b/sm/gpgsm.h
index 83918cc9a..e8322b731 100644
--- a/sm/gpgsm.h
+++ b/sm/gpgsm.h
@@ -59,6 +59,7 @@ struct
int answer_yes; /* assume yes on most questions */
int answer_no; /* assume no on most questions */
int dry_run; /* don't change any persistent data */
+ int no_homedir_creation;
const char *homedir; /* Configuration directory name */
const char *config_filename; /* Name of the used config file. */