mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Changed lsign behaviour, allow future subkeys, don't list revoked keys
This commit is contained in:
parent
32cf5dfb99
commit
dce4566802
14 changed files with 82 additions and 38 deletions
|
@ -1649,7 +1649,7 @@ merge_selfsigs_main( KBNODE keyblock, int *r_revoked )
|
|||
if ( pk->version >= 4 )
|
||||
pk->expiredate = key_expire;
|
||||
/* Fixme: we should see how to get rid of the expiretime fields but
|
||||
* this needs changes at other palces too. */
|
||||
* this needs changes at other places too. */
|
||||
|
||||
/* and now find the real primary user ID and delete all others */
|
||||
uiddate = uiddate2 = 0;
|
||||
|
@ -2077,6 +2077,7 @@ finish_lookup( GETKEY_CTX ctx, KBNODE foundk )
|
|||
unsigned int req_usage = ( ctx->req_usage & USAGE_MASK );
|
||||
u32 latest_date;
|
||||
KBNODE latest_key;
|
||||
u32 curtime = make_timestamp ();
|
||||
|
||||
assert( !foundk || foundk->pkt->pkttype == PKT_PUBLIC_KEY
|
||||
|| foundk->pkt->pkttype == PKT_PUBLIC_SUBKEY );
|
||||
|
@ -2134,6 +2135,11 @@ finish_lookup( GETKEY_CTX ctx, KBNODE foundk )
|
|||
log_debug( "\tsubkey has expired\n");
|
||||
continue;
|
||||
}
|
||||
if ( pk->timestamp > curtime && !opt.ignore_valid_from ) {
|
||||
if (DBG_CACHE)
|
||||
log_debug( "\tsubkey not yet valid\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( !((pk->pubkey_usage&USAGE_MASK) & req_usage) ) {
|
||||
if (DBG_CACHE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue