diff options
author | David Shaw <[email protected]> | 2004-08-23 19:20:17 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2004-08-23 19:20:17 +0000 |
commit | 10eb272a73c71d0803658d965ce70d9fdb0088f6 (patch) | |
tree | 12f307bb2ae091c6e14529721e4d52882b8398f5 /g10/keyserver.c | |
parent | * keydb.h, getkey.c (get_user_id_printable): Rename to get_user_id_native (diff) | |
download | gnupg-10eb272a73c71d0803658d965ce70d9fdb0088f6.tar.gz gnupg-10eb272a73c71d0803658d965ce70d9fdb0088f6.zip |
* keyserver.c (keyserver_spawn): Show log line for what keyserver action
we are taking.
* keyid.c (keystr): If printing a keyid that lacks the high 4 bytes, print
the low 4 alone. (keystr_from_desc): Handle short keyids and warn on v3
fingerprints.
Diffstat (limited to '')
-rw-r--r-- | g10/keyserver.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/g10/keyserver.c b/g10/keyserver.c index 028c65aca..2bd5a4067 100644 --- a/g10/keyserver.c +++ b/g10/keyserver.c @@ -878,6 +878,10 @@ keyserver_spawn(int action,STRLIST list,KEYDB_SEARCH_DESC *desc, else if(desc[i].mode==KEYDB_SEARCH_MODE_SHORT_KID) fprintf(spawn->tochild,"0x%08lX\n", (ulong)desc[i].u.kid[1]); + + log_info(_("requesting key %s from %s server %s\n"), + keystr_from_desc(&desc[i]), + keyserver->scheme,keyserver->host); } fprintf(spawn->tochild,"\n"); @@ -1019,6 +1023,11 @@ keyserver_spawn(int action,STRLIST list,KEYDB_SEARCH_DESC *desc, fprintf(spawn->tochild,"KEY %s END\n",key->d); iobuf_close(buffer); + + log_info(_("sending key %s to %s server %s\n"), + keystr(block->pkt->pkt.public_key->keyid), + keyserver->scheme,keyserver->host); + release_kbnode(block); } @@ -1057,6 +1066,9 @@ keyserver_spawn(int action,STRLIST list,KEYDB_SEARCH_DESC *desc, fprintf(spawn->tochild,"\n"); + log_info(_("searching for \"%s\" from %s server %s\n"), + searchstr,keyserver->scheme,keyserver->host); + break; } @@ -1152,11 +1164,8 @@ keyserver_spawn(int action,STRLIST list,KEYDB_SEARCH_DESC *desc, break; case SEARCH: - { - keyserver_search_prompt(spawn->fromchild,searchstr); - - break; - } + keyserver_search_prompt(spawn->fromchild,searchstr); + break; default: log_fatal(_("no keyserver action!\n")); @@ -1165,6 +1174,7 @@ keyserver_spawn(int action,STRLIST list,KEYDB_SEARCH_DESC *desc, fail: m_free(line); + m_free(searchstr); *prog=exec_finish(spawn); |