aboutsummaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
Diffstat (limited to 'sm')
-rw-r--r--sm/ChangeLog3
-rw-r--r--sm/gpgsm.c5
-rw-r--r--sm/server.c2
3 files changed, 9 insertions, 1 deletions
diff --git a/sm/ChangeLog b/sm/ChangeLog
index ee5f1a5a6..af7ddb1c6 100644
--- a/sm/ChangeLog
+++ b/sm/ChangeLog
@@ -1,7 +1,10 @@
2004-05-11 Werner Koch <[email protected]>
+ * gpgsm.c: New option --debug-allow-core-dump.
+
* gpgsm.h (opt): Add member CONFIG_FILENAME.
* gpgsm.c (main): Use it here instead of the local var.
+
* server.c (gpgsm_server): Print some additional information with
the hello in verbose mode.
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index adc04336e..e1751a7aa 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -92,6 +92,7 @@ enum cmd_and_opt_values {
oDebugLevel,
oDebugAll,
oDebugWait,
+ oDebugAllowCoreDump,
oDebugNoChainValidation,
oDebugIgnoreExpiration,
oLogFile,
@@ -335,6 +336,7 @@ static ARGPARSE_OPTS opts[] = {
{ oDebugLevel, "debug-level" ,2, "@"},
{ oDebugAll, "debug-all" ,0, "@"},
{ oDebugWait, "debug-wait" ,1, "@"},
+ { oDebugAllowCoreDump, "debug-allow-core-dump", 0, "@" },
{ oDebugNoChainValidation, "debug-no-chain-validation", 0, "@"},
{ oDebugIgnoreExpiration, "debug-ignore-expiration", 0, "@"},
{ oStatusFD, "status-fd" ,1, N_("|FD|write status info to this FD") },
@@ -1010,6 +1012,9 @@ main ( int argc, char **argv)
case oDebugAll: opt.debug = ~0; break;
case oDebugLevel: debug_level = pargs.r.ret_str; break;
case oDebugWait: debug_wait = pargs.r.ret_int; break;
+ case oDebugAllowCoreDump:
+ may_coredump = enable_core_dumps ();
+ break;
case oDebugNoChainValidation: opt.no_chain_validation = 1; break;
case oDebugIgnoreExpiration: opt.ignore_expiration = 1; break;
diff --git a/sm/server.c b/sm/server.c
index d94485926..72bf74afa 100644
--- a/sm/server.c
+++ b/sm/server.c
@@ -811,7 +811,7 @@ gpgsm_server (certlist_t default_recplist)
assuan_strerror(rc));
gpgsm_exit (2);
}
- if (opt.verbose)
+ if (opt.verbose || opt.debug)
{
char *tmp = NULL;
const char *s1 = getenv ("GPG_AGENT_INFO");