summaryrefslogtreecommitdiff
path: root/src/cryptinit.hpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2010-01-11 02:40:06 +0000
committerOthmar Gsenger <otti@anytun.org>2010-01-11 02:40:06 +0000
commit54dc97608c637613a67600cdf566ba875d28a9b6 (patch)
tree1d5316fc7f7b28be4c558ef3821411367156acd4 /src/cryptinit.hpp
parentfixed line indention (diff)
cleaned up crypto init
cleaned up default log targets
Diffstat (limited to 'src/cryptinit.hpp')
-rw-r--r--src/cryptinit.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cryptinit.hpp b/src/cryptinit.hpp
index f165c65..f8ac938 100644
--- a/src/cryptinit.hpp
+++ b/src/cryptinit.hpp
@@ -104,4 +104,17 @@ bool initLibGCrypt()
#endif
#endif
+bool initCrypto()
+{
+#ifndef NO_CRYPT
+#ifndef USE_SSL_CRYPTO
+ return initLibGCrypt();
+#else
+ return true;
+#endif
+#else
+ return true;
+#endif
+}
+
#endif