X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/8e58a1769ce5e492dd68904dfc81b6e077fc2a3a..76c5dd1081bc9db3bf446480457b52d4ae7b3891:/main.c?ds=inline 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);