X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/ad30ce51bf609c35cd99a9ca46dd859b17d8164a..63dd4f45a5b356f7f6bdc4345c7f265ac5d2cd32:/add.c diff --git a/add.c b/add.c index 189444e..10627f2 100644 --- a/add.c +++ b/add.c @@ -23,7 +23,6 @@ #include "merge.h" #include "onak-conf.h" #include "parsekey.h" -#include "sendsync.h" int main(int argc, char *argv[]) { @@ -78,14 +77,15 @@ int main(int argc, char *argv[]) logthing(LOGTHING_INFO, "%d keys cleaned.", count); - count = update_keys(&keys); + count = update_keys(&keys, true); logthing(LOGTHING_NOTICE, "Got %d new keys.", count); + if (keys != NULL) { - sendkeysync(keys); free_publickey(keys); keys = NULL; } + cleanupdb(); } else { puts("No OpenPGP packets found in input.");