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
|
@ -417,7 +417,11 @@ do_we_trust( PKT_public_key *pk, unsigned int trustlevel )
|
|||
if(trustlevel & TRUST_FLAG_REVOKED
|
||||
|| trustlevel & TRUST_FLAG_SUB_REVOKED
|
||||
|| (trustlevel & TRUST_MASK) == TRUST_EXPIRED)
|
||||
BUG();
|
||||
{
|
||||
if (opt.ignore_expiration)
|
||||
return 0;
|
||||
BUG ();
|
||||
}
|
||||
|
||||
if( opt.trust_model==TM_ALWAYS )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue