diff options
author | Werner Koch <[email protected]> | 1998-03-19 15:27:29 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1998-03-19 15:27:29 +0000 |
commit | 6b91e7762c65097a103b2b17db304a4d85b3573d (patch) | |
tree | 4303dbf887db8130c58e1025cac3c8fe291c6ceb /g10/trustdb.c | |
parent | NEw test keyrings (diff) | |
download | gnupg-6b91e7762c65097a103b2b17db304a4d85b3573d.tar.gz gnupg-6b91e7762c65097a103b2b17db304a4d85b3573d.zip |
some cleanups
Diffstat (limited to '')
-rw-r--r-- | g10/trustdb.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c index 257c37204..9bea383c7 100644 --- a/g10/trustdb.c +++ b/g10/trustdb.c @@ -1388,8 +1388,8 @@ propagate_trust( TRUST_SEG_LIST tslist ) /**************** - * we have the pubkey record but nothing more is known - * function may re-read dr. + * we have the pubkey record but nothing more is known. + * (function may re-read dr) */ static int do_check( ulong pubkeyid, TRUSTREC *dr, unsigned *trustlevel ) @@ -1736,7 +1736,11 @@ check_trust( PKT_public_cert *pkc, unsigned *r_trustlevel ) pkc->local_id ); } } - /* fixme: do some additional checks on the pubkey record */ + if( pkc->timestamp > make_timestamp() ) { + log_info("public key created in future (time warp or clock problem)\n"); + return G10ERR_TIME_CONFLICT; + } + rc = do_check( pkc->local_id, &rec, &trustlevel ); if( rc ) { |