diff options
Diffstat (limited to 'anytun.cpp')
-rw-r--r-- | anytun.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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; |