* keyserver.c (keyserver_refresh): Don't print the "refreshing..." line if

there are no keys to refresh or if there is no keyserver set.

* getkey.c (merge_selfsigs_main): Any valid user ID should make a key
valid, not just the last one.  This also fixes Debian bug #174276.
This commit is contained in:
David Shaw 2002-12-27 23:46:51 +00:00
parent 98ef43987a
commit 55eda4b4f8
3 changed files with 26 additions and 7 deletions

View File

@ -1,3 +1,13 @@
2002-12-27 David Shaw <dshaw@jabberwocky.com>
* keyserver.c (keyserver_refresh): Don't print the "refreshing..."
line if there are no keys to refresh or if there is no keyserver
set.
* getkey.c (merge_selfsigs_main): Any valid user ID should make a
key valid, not just the last one. This also fixes Debian bug
#174276.
2002-12-27 Stefan Bellon <sbellon@sbellon.de>
* import.c (print_import_check): Changed int to size_t.

View File

@ -1499,7 +1499,10 @@ merge_selfsigs_main( KBNODE keyblock, int *r_revoked )
for(k=keyblock; k && k->pkt->pkttype != PKT_PUBLIC_SUBKEY; k = k->next ) {
if ( k->pkt->pkttype == PKT_USER_ID ) {
if ( uidnode && signode )
{
fixup_uidnode ( uidnode, signode, keytimestamp );
pk->is_valid=1;
}
uidnode = k;
signode = NULL;
if ( sigdate > uiddate )

View File

@ -1263,17 +1263,23 @@ keyserver_refresh(STRLIST users)
if(rc)
return rc;
if(count==1)
log_info(_("refreshing 1 key from %s\n"),opt.keyserver_uri);
else
log_info(_("refreshing %d keys from %s\n"),count,opt.keyserver_uri);
if(count>0)
rc=keyserver_work(GET,NULL,desc,count);
{
if(opt.keyserver_uri)
{
if(count==1)
log_info(_("refreshing 1 key from %s\n"),opt.keyserver_uri);
else
log_info(_("refreshing %d keys from %s\n"),
count,opt.keyserver_uri);
}
rc=keyserver_work(GET,NULL,desc,count);
}
m_free(desc);
return 0;
return rc;
}
int