Do the neon ssl initialization.

This fixes bug #1298 and also probably #1297. More tests needed.
This commit is contained in:
Klaas Freitag 2013-12-19 13:33:31 +01:00
parent c50b0a995b
commit d17be6f1ff

View file

@ -20,6 +20,8 @@
#include <QFile>
#include <qdebug.h>
#include <neon/ne_socket.h>
#include "csyncthread.h"
#include <syncjournaldb.h>
#include "logger.h"
@ -119,6 +121,10 @@ int main(int argc, char **argv) {
qFatal("Unable to create csync-context!");
return EXIT_FAILURE;
}
int rc = ne_sock_init();
if (rc < 0) {
qFatal("ne_sock_init failed!");
}
csync_set_log_level(11);
csync_enable_conflictcopys(_csync_ctx);
@ -143,5 +149,7 @@ int main(int argc, char **argv) {
csync_destroy(_csync_ctx);
ne_sock_exit();
return 0;
}