2 * onak.c - An OpenPGP keyserver.
4 * This is the main swiss army knife binary.
6 * Jonathan McDowell <noodles@earth.li>
8 * Copyright 2002 Project Purple
17 #include "keystructs.h"
22 int stdin_getchar(void *ctx, size_t count, unsigned char *c)
30 } while ((ic != EOF) && (--count > 0));
34 int stdout_putchar(void *ctx, unsigned char c)
40 int main(int argc, char *argv[])
42 struct openpgp_packet_list *packets = NULL;
43 struct openpgp_packet_list *list_end = NULL;
44 struct openpgp_publickey *keys = NULL;
45 int rc = EXIT_SUCCESS;
47 read_openpgp_stream(stdin_getchar, NULL, &packets);
48 if (packets != NULL) {
49 parse_keys(packets, &keys);
50 free_packet_list(packets);
54 fprintf(stderr, "Got %d new keys.\n",
59 fprintf(stderr, "No keys read.\n");
67 fprintf(stderr, "No changes.\n");