projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add keyd backend (persistant database access over Unix socket)
[onak.git]
/
onak.c
diff --git
a/onak.c
b/onak.c
index 9af2c4310b21959d100ab0f9b987ae8acec2b940..7bd89190118f02c664a6e758ef766a74b45faf77 100644
(file)
--- a/
onak.c
+++ b/
onak.c
@@
-17,6
+17,8
@@
#include "armor.h"
#include "charfuncs.h"
#include "cleankey.h"
#include "armor.h"
#include "charfuncs.h"
#include "cleankey.h"
+#include "cleanup.h"
+#include "config.h"
#include "keydb.h"
#include "keyid.h"
#include "keyindex.h"
#include "keydb.h"
#include "keyid.h"
#include "keyindex.h"
@@
-53,7
+55,7
@@
void find_keys(char *search, uint64_t keyid, bool ishex,
}
void usage(void) {
}
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");
puts("Usage:\n");
puts("\tonak [options] <command> <parameters>\n");
puts("\tCommands:\n");
@@
-113,6
+115,7
@@
int main(int argc, char *argv[])
readconfig(configfile);
initlogthing("onak", config.logfile);
readconfig(configfile);
initlogthing("onak", config.logfile);
+ catchsignals();
if ((argc - optind) < 1) {
usage();
if ((argc - optind) < 1) {
usage();