X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/98ee16938c903e9d1d5bb9b720f9cfef1fa2ec0a..58d762ea573eb3cfea626bb52ea7a99e24b8a0aa:/lookup.c diff --git a/lookup.c b/lookup.c index 71c27c3..72798ce 100644 --- a/lookup.c +++ b/lookup.c @@ -5,7 +5,7 @@ * * Copyright 2002 Project Purple * - * $Id: lookup.c,v 1.10 2003/06/07 13:45:34 noodles Exp $ + * $Id: lookup.c,v 1.11 2003/10/04 10:21:41 noodles Exp $ */ #include @@ -16,6 +16,7 @@ #include #include "armor.h" +#include "charfuncs.h" #include "getcgi.h" #include "keydb.h" #include "keyindex.h" @@ -29,11 +30,6 @@ #define OP_INDEX 2 #define OP_VINDEX 3 -int putnextchar(void *ctx, size_t count, unsigned char *c) -{ - return printf("%.*s", (int) count, c); -} - void find_keys(char *search, uint64_t keyid, bool ishex, bool fingerprint, bool exact, bool verbose, bool mrhkp) { @@ -160,7 +156,7 @@ int main(int argc, char *argv[]) flatten_publickey(publickey, &packets, &list_end); - armor_openpgp_stream(putnextchar, + armor_openpgp_stream(stdout_putchar, NULL, packets); puts("");