mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: New option --debug-ignore-expiration to help with testing.
* g10/gpg.c (oDebugIgnoreExpiration): New. (opts): Add option. (main): Set flag. * g10/options.h (opt): Add field ignore_expiration. * g10/pkclist.c (do_we_trust): Handle the option. * g10/getkey.c (skip_unusable): Ditto. (finish_lookup): Ditto. -- GnuPG-bug-id: 2703
This commit is contained in:
parent
ef2c3d50fa
commit
c30d5829c9
5 changed files with 26 additions and 9 deletions
|
@ -234,6 +234,7 @@ enum cmd_and_opt_values
|
|||
oDebugIOLBF,
|
||||
oDebugSetIobufSize,
|
||||
oDebugAllowLargeChunks,
|
||||
oDebugIgnoreExpiration,
|
||||
oStatusFD,
|
||||
oStatusFile,
|
||||
oAttributeFD,
|
||||
|
@ -607,7 +608,6 @@ static gpgrt_opt_t opts[] = {
|
|||
N_("|FILE|write server mode logs to FILE")),
|
||||
ARGPARSE_s_s (oLoggerFile, "logger-file", "@"), /* 1.4 compatibility. */
|
||||
ARGPARSE_s_n (oLogTime, "log-time", "@"),
|
||||
ARGPARSE_s_n (oQuickRandom, "debug-quick-random", "@"),
|
||||
|
||||
|
||||
ARGPARSE_header ("Configuration",
|
||||
|
@ -929,6 +929,8 @@ static gpgrt_opt_t opts[] = {
|
|||
ARGPARSE_s_n (oRFC2440Text, "rfc2440-text", "@"),
|
||||
ARGPARSE_s_n (oNoRFC2440Text, "no-rfc2440-text", "@"),
|
||||
ARGPARSE_p_u (oKbxBufferSize, "kbx-buffer-size", "@"),
|
||||
ARGPARSE_s_n (oQuickRandom, "debug-quick-random", "@"),
|
||||
ARGPARSE_s_n (oDebugIgnoreExpiration, "debug-ignore-expiration", "@"),
|
||||
|
||||
ARGPARSE_header (NULL, ""), /* Stop the header group. */
|
||||
|
||||
|
@ -2851,6 +2853,10 @@ main (int argc, char **argv)
|
|||
allow_large_chunks = 1;
|
||||
break;
|
||||
|
||||
case oDebugIgnoreExpiration:
|
||||
opt.ignore_expiration = 1;
|
||||
break;
|
||||
|
||||
case oCompatibilityFlags:
|
||||
if (parse_compatibility_flags (pargs.r.ret_str, &opt.compat_flags,
|
||||
compatibility_flags))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue