* keyserver.c (keyserver_spawn): Write the 16-digit keyid rather
authorDavid Shaw <dshaw@jabberwocky.com>
Fri, 6 Oct 2006 05:57:52 +0000 (05:57 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Fri, 6 Oct 2006 05:57:52 +0000 (05:57 +0000)
than whatever key selector the user used on the command line.

g10/ChangeLog
g10/keyserver.c

index c91022a..6ad1da6 100644 (file)
@@ -1,3 +1,8 @@
+2006-10-06  David Shaw  <dshaw@jabberwocky.com>
+
+       * keyserver.c (keyserver_spawn): Write the 16-digit keyid rather
+       than whatever key selector the user used on the command line.
+
 2006-10-05  Werner Koch  <wk@g10code.com>
 
        * status.c (progress_cb): Changed to libgcrypt API.
index aacbfc5..98086c3 100644 (file)
@@ -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);