summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--anytun.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/anytun.cpp b/anytun.cpp
index a55145e..11aa8f3 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -290,6 +290,10 @@ void* receiver(void* p)
#define MIN_GCRYPT_VERSION "1.2.3"
#define GCRYPT_SEC_MEM 32768 // 32k secure memory
+// make libgcrypt thread safe
+extern "C" {
+GCRY_THREAD_OPTION_PTHREAD_IMPL;
+}
void initLibGCrypt()
{
@@ -328,12 +332,6 @@ void initLibGCrypt()
}
}
-
-// make libgcrypt thread safe
-extern "C" {
-GCRY_THREAD_OPTION_PTHREAD_IMPL;
-}
-
int main(int argc, char* argv[])
{
std::cout << "anytun - secure anycast tunneling protocol" << std::endl;