summaryrefslogtreecommitdiff
path: root/src/init_crypt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/init_crypt.h')
-rw-r--r--src/init_crypt.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/src/init_crypt.h b/src/init_crypt.h
index 314ebc5..9a8849e 100644
--- a/src/init_crypt.h
+++ b/src/init_crypt.h
@@ -48,7 +48,23 @@ int init_crypt()
#else
-#ifndef USE_SSL_CRYPTO
+#if defined(USE_SSL_CRYPTO)
+
+int init_crypt()
+{
+// nothing here
+ return 0;
+}
+
+#elif defined(USE_NETTLE)
+
+int init_crypt()
+{
+// nothing here
+ return 0;
+}
+
+#else // USE_GCRYPT is the default
#include <gcrypt.h>
@@ -77,14 +93,6 @@ int init_crypt()
return 0;
}
-#else
-
-int init_crypt()
-{
-// nothing here
- return 0;
-}
-
#endif