summaryrefslogtreecommitdiffstats
path: root/src/fusedav.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fusedav.c')
-rw-r--r--src/fusedav.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/fusedav.c b/src/fusedav.c
index 2d04c51..a0723b1 100644
--- a/src/fusedav.c
+++ b/src/fusedav.c
@@ -52,7 +52,6 @@
#include "statcache.h"
#include "filecache.h"
#include "session.h"
-#include "openssl-thread.h"
#include "fusedav.h"
const ne_propname query_properties[] = {
@@ -1386,8 +1385,13 @@ int main(int argc, char *argv[]) {
goto finish;
}
- openssl_thread_setup();
-
+ if (!ne_has_support(NE_FEATURE_SSL) ||
+ !ne_has_support(NE_FEATURE_TS_SSL) ||
+ !ne_has_support(NE_FEATURE_LFS)) {
+ fprintf(stderr, "fusedav requires libneon built with SSL, SSL thread safety and LFS enabled.\n");
+ goto finish;
+ }
+
mask = umask(0);
umask(mask);
@@ -1508,7 +1512,6 @@ finish:
file_cache_close_all();
cache_free();
session_free();
- openssl_thread_cleanup();
return ret;
}