#include "armor.h"
#include "charfuncs.h"
#include "cleankey.h"
+#include "cleanup.h"
+#include "config.h"
#include "keydb.h"
#include "keyid.h"
#include "keyindex.h"
}
void usage(void) {
- puts("onak " VERSION " - an OpenPGP keyserver.\n");
+ puts("onak " PACKAGE_VERSION " - an OpenPGP keyserver.\n");
puts("Usage:\n");
puts("\tonak [options] <command> <parameters>\n");
puts("\tCommands:\n");
readconfig(configfile);
initlogthing("onak", config.logfile);
+ catchsignals();
if ((argc - optind) < 1) {
usage();
initdb(false);
logthing(LOGTHING_NOTICE, "Got %d new keys.",
- update_keys(&keys));
+ update_keys(&keys, false));
if (keys != NULL && update) {
flatten_publickey(keys,
&packets,