X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=main.c;h=c7bfe28d5fc0b70357e7c257b8f685eb1da0e6fe;hb=4179d4a97b3a242b14ed023c2c3e8935a6e3e1e4;hp=33b193d7a458fd8afe500298548360771f0916d5;hpb=d86fc0129d44094ff23162feff617289033bc8e2;p=onak.git diff --git a/main.c b/main.c index 33b193d..c7bfe28 100644 --- a/main.c +++ b/main.c @@ -15,19 +15,19 @@ int getnextchar(void *ctx, size_t count, unsigned char *c) return (!read(0, c, count)); } -int putnextchar(void *ctx, unsigned char c) +int putnextchar(void *ctx, size_t count, unsigned char *c) { - return (!write(1, &c, 1)); + return (!write(1, c, count)); } int main(int argc, char *argv[]) { - struct openpgp_packet_list *packets = NULL, *newpackets = NULL; - struct openpgp_packet_list *list_end = NULL; - struct openpgp_publickey *keys = NULL; - struct openpgp_publickey *newkeys = NULL; - void *ctx = NULL; + struct openpgp_packet_list *packets = NULL; //, *newpackets = NULL; +// struct openpgp_packet_list *list_end = NULL; +// struct openpgp_publickey *keys = NULL; +// struct openpgp_publickey *newkeys = NULL; +// void *ctx = NULL; // fputs("Doing read_openpgp_stream():\n", stderr); // read_openpgp_stream(getnextchar, ctx, &packets);