diff options
author | David Shaw <dshaw@jabberwocky.com> | 2002-10-04 00:13:04 +0200 |
---|---|---|
committer | David Shaw <dshaw@jabberwocky.com> | 2002-10-04 00:13:04 +0200 |
commit | 8c48fbd0e29d883ecb886a023c683c944275e979 (patch) | |
tree | cea78bc8afadb1b15158e349dfc5bd5ee77641b8 | |
parent | * util.h: Add new log_warning logger command which can be switched between (diff) | |
download | gnupg2-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/ChangeLog | 3 | ||||
-rw-r--r-- | g10/g10.c | 6 | ||||
-rw-r--r-- | g10/options.h | 1 |
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. @@ -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; |