summaryrefslogtreecommitdiff
path: root/anytun.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-02-20 14:16:57 +0000
committerChristian Pointner <equinox@anytun.org>2008-02-20 14:16:57 +0000
commit0df526c901a6a29b1251d259cc8062b486362522 (patch)
treef476d41dda61f5624076ed80ba8f64fdf2b0b67c /anytun.cpp
parentcleanups (diff)
fixed bug with secure memory (don't activate authentication!)
Diffstat (limited to 'anytun.cpp')
-rw-r--r--anytun.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/anytun.cpp b/anytun.cpp
index e2afc7a..5aab904 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -126,7 +126,7 @@ void* sender(void* p)
ThreadParam* param = reinterpret_cast<ThreadParam*>(p);
std::auto_ptr<Cipher> c(CipherFactory::create(param->opt.getCipher()));
- std::auto_ptr<AuthAlgo> a(AuthAlgoFactory::create(param->opt.getAuthAlgo()) );
+// std::auto_ptr<AuthAlgo> a(AuthAlgoFactory::create(param->opt.getAuthAlgo()) );
PlainPacket plain_packet(1600); // TODO: fix me... mtu size
EncryptedPacket packet(1600);
@@ -221,7 +221,7 @@ void* receiver(void* p)
ThreadParam* param = reinterpret_cast<ThreadParam*>(p);
std::auto_ptr<Cipher> c( CipherFactory::create(param->opt.getCipher()) );
- std::auto_ptr<AuthAlgo> a( AuthAlgoFactory::create(param->opt.getAuthAlgo()) );
+// std::auto_ptr<AuthAlgo> a( AuthAlgoFactory::create(param->opt.getAuthAlgo()) );
EncryptedPacket packet(1600); // TODO: dynamic mtu size
PlainPacket plain_packet(1600);
@@ -412,9 +412,9 @@ int main(int argc, char* argv[])
pthread_t senderThread;
pthread_create(&senderThread, NULL, sender, &p);
pthread_t receiverThread;
- pthread_create(&receiverThread, NULL, receiver, &p);
- pthread_t syncListenerThread;
+ pthread_create(&receiverThread, NULL, receiver, &p);
+ pthread_t syncListenerThread;
if ( opt.getLocalSyncPort())
pthread_create(&syncListenerThread, NULL, syncListener, &p);