summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <dshaw@jabberwocky.com>2002-10-04 00:13:04 +0200
committerDavid Shaw <dshaw@jabberwocky.com>2002-10-04 00:13:04 +0200
commit8c48fbd0e29d883ecb886a023c683c944275e979 (patch)
treecea78bc8afadb1b15158e349dfc5bd5ee77641b8
parent* util.h: Add new log_warning logger command which can be switched between (diff)
downloadgnupg2-8c48fbd0e29d883ecb886a023c683c944275e979.tar.xz
gnupg2-8c48fbd0e29d883ecb886a023c683c944275e979.zip
* options.h, g10.c (main): Add --strict and --no-strict to switch the
log_warning severity level from info to error.
-rw-r--r--g10/ChangeLog3
-rw-r--r--g10/g10.c6
-rw-r--r--g10/options.h1
3 files changed, 10 insertions, 0 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 89937f294..84f05b2a0 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,5 +1,8 @@
2002-10-03 David Shaw <dshaw@jabberwocky.com>
+ * options.h, g10.c (main): Add --strict and --no-strict to switch
+ the log_warning severity level from info to error.
+
* keylist.c (print_capabilities): Secret-parts-missing keys should
show that fact in the capabilities, and only primary signing keys
can certify other keys.
diff --git a/g10/g10.c b/g10/g10.c
index 0cf7d09e0..3cc6b54aa 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -300,6 +300,8 @@ enum cmd_and_opt_values { aNull = 0,
oLCctype,
oLCmessages,
oGroup,
+ oStrict,
+ oNoStrict,
aTest };
@@ -588,6 +590,8 @@ static ARGPARSE_OPTS opts[] = {
{ oLCctype, "lc-ctype", 2, "@" },
{ oLCmessages, "lc-messages", 2, "@" },
{ oGroup, "group", 2, "@" },
+ { oStrict, "strict", 0, "@" },
+ { oNoStrict, "no-strict", 0, "@" },
{0} };
@@ -1693,6 +1697,8 @@ main( int argc, char **argv )
case oLCctype: opt.lc_ctype = pargs.r.ret_str; break;
case oLCmessages: opt.lc_messages = pargs.r.ret_str; break;
case oGroup: add_group(pargs.r.ret_str); break;
+ case oStrict: opt.strict=1; log_set_strict(1); break;
+ case oNoStrict: opt.strict=0; log_set_strict(0); break;
default : pargs.err = configfp? 1:2; break;
}
}
diff --git a/g10/options.h b/g10/options.h
index f9301fdd3..6be587ab8 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -177,6 +177,7 @@ struct {
int no_homedir_creation;
int show_keyring;
struct groupitem *grouplist;
+ int strict;
} opt;