1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

If a key isn't valid (say, because of no self-signature), allow

--always-trust to force it valid so it can be trusted.
This commit is contained in:
David Shaw 2002-02-27 14:27:18 +00:00
parent 6deb95687d
commit 8ed6d59a6c
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2002-02-27 David Shaw <dshaw@jabberwocky.com>
* getkey.c (merge_selfsigs_main): If a key isn't valid (say,
because of no self-signature), allow --always-trust to force it
valid so it can be trusted.
2002-02-25 David Shaw <dshaw@jabberwocky.com>
* hkp.c (hkp_ask_import), hkp.h, keyserver.c (all): treat key

View File

@ -1301,6 +1301,18 @@ merge_selfsigs_main( KBNODE keyblock, int *r_revoked )
fixup_uidnode ( uidnode, signode, keytimestamp );
pk->is_valid = 1;
}
/* If the key isn't valid yet, and we have --always-trust set,
then force it valid. */
if(opt.always_trust && !pk->is_valid)
{
if(opt.verbose)
log_info(_("Invalid key %08lX made valid by --always-trust\n"),
(ulong)keyid_from_pk(pk,NULL));
pk->is_valid = 1;
}
if ( sigdate > uiddate )
uiddate = sigdate;