From 0df526c901a6a29b1251d259cc8062b486362522 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 20 Feb 2008 14:16:57 +0000 Subject: fixed bug with secure memory (don't activate authentication!) --- anytun.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'anytun.cpp') 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(p); std::auto_ptr c(CipherFactory::create(param->opt.getCipher())); - std::auto_ptr a(AuthAlgoFactory::create(param->opt.getAuthAlgo()) ); +// std::auto_ptr 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(p); std::auto_ptr c( CipherFactory::create(param->opt.getCipher()) ); - std::auto_ptr a( AuthAlgoFactory::create(param->opt.getAuthAlgo()) ); +// std::auto_ptr 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); -- cgit v1.2.3