]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - maxpath.c
Fix assumption that a signature on a public key is a revocation
[onak.git] / maxpath.c
index 2f813dec734e555a2359fb1278c95d6e658e2fac..191ce8aa3764c82ab07033e3bf7a34b88c0bd5ad 100644 (file)
--- a/maxpath.c
+++ b/maxpath.c
@@ -14,6 +14,7 @@
 #include "hash.h"
 #include "keydb.h"
 #include "ll.h"
+#include "log.h"
 #include "onak-conf.h"
 #include "stats.h"
 
@@ -69,14 +70,16 @@ void findmaxpath(unsigned long max)
 
 int main(int argc, char *argv[])
 {
-       readconfig();
-       initdb();
+       readconfig(NULL);
+       initlogthing("maxpath", config.logfile);
+       initdb(true);
        inithash();
        findmaxpath(30);
        printf("--------\n");
        findmaxpath(30);
        destroyhash();
        cleanupdb();
+       cleanuplogthing();
        cleanupconfig();
        
        return EXIT_SUCCESS;