diff options
author | David Shaw <dshaw@jabberwocky.com> | 2006-10-06 07:57:52 +0200 |
---|---|---|
committer | David Shaw <dshaw@jabberwocky.com> | 2006-10-06 07:57:52 +0200 |
commit | ae390ea0a2691b3f2760a5d8fc04b75cd116a1ab (patch) | |
tree | 418177d121a8ffa85ac90558b8822aadae4d184d /g10/keyserver.c | |
parent | bug fixes (diff) | |
download | gnupg2-ae390ea0a2691b3f2760a5d8fc04b75cd116a1ab.tar.xz gnupg2-ae390ea0a2691b3f2760a5d8fc04b75cd116a1ab.zip |
* keyserver.c (keyserver_spawn): Write the 16-digit keyid rather
than whatever key selector the user used on the command line.
Diffstat (limited to 'g10/keyserver.c')
-rw-r--r-- | g10/keyserver.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/g10/keyserver.c b/g10/keyserver.c index aacbfc5c2..98086c30a 100644 --- a/g10/keyserver.c +++ b/g10/keyserver.c @@ -1322,10 +1322,14 @@ keyserver_spawn(enum ks_action action,strlist_t list,KEYDB_SEARCH_DESC *desc, (ulong)block->pkt->pkt.public_key->keyid[0], (ulong)block->pkt->pkt.public_key->keyid[1]); - fprintf(spawn->tochild,"KEY %s BEGIN\n",key->d); + fprintf(spawn->tochild,"KEY %08lX%08lX BEGIN\n", + (ulong)block->pkt->pkt.public_key->keyid[0], + (ulong)block->pkt->pkt.public_key->keyid[1]); fwrite(iobuf_get_temp_buffer(buffer), iobuf_get_temp_length(buffer),1,spawn->tochild); - fprintf(spawn->tochild,"KEY %s END\n",key->d); + fprintf(spawn->tochild,"KEY %08lX%08lX END\n", + (ulong)block->pkt->pkt.public_key->keyid[0], + (ulong)block->pkt->pkt.public_key->keyid[1]); iobuf_close(buffer); |