summaryrefslogtreecommitdiff
path: root/src/init_crypt.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2014-06-21 16:48:26 +0000
committerChristian Pointner <equinox@anytun.org>2014-06-21 16:48:26 +0000
commite8c117aa01ac48fa2cf022810543bd97a0e44e57 (patch)
tree2512d1d438fe4639ce51a3e867c54926fe9fcb29 /src/init_crypt.h
parentadded branch for new crypto library (diff)
refactored crypto lib selection
Diffstat (limited to 'src/init_crypt.h')
-rw-r--r--src/init_crypt.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/init_crypt.h b/src/init_crypt.h
index 314ebc5..47688c7 100644
--- a/src/init_crypt.h
+++ b/src/init_crypt.h
@@ -48,7 +48,15 @@ int init_crypt()
#else
-#ifndef USE_SSL_CRYPTO
+#ifdef USE_SSL_CRYPTO
+
+int init_crypt()
+{
+// nothing here
+ return 0;
+}
+
+#else // USE_GCRYPT is the default
#include <gcrypt.h>
@@ -77,14 +85,6 @@ int init_crypt()
return 0;
}
-#else
-
-int init_crypt()
-{
-// nothing here
- return 0;
-}
-
#endif