summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-02-06 20:50:51 +0000
committerChristian Pointner <equinox@anytun.org>2008-02-06 20:50:51 +0000
commit8e918fc821c36fe829e1f88578cade4eef90d531 (patch)
tree33a511c34710e460cf4a0e2edbe47ac8cdaa7df6
parentadded wireshakr lua script for satp (diff)
sorry for last ceckin :(
build works now
-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;