summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-02-24 00:45:34 +0000
committerChristian Pointner <equinox@anytun.org>2008-02-24 00:45:34 +0000
commit24ffb4132394099e293bd49ce5c819fed58c7027 (patch)
treecc063dc3d3fc9e83903bda803dca35536c7f7d38
parentbugfix@ sender and receiver reset packet size at begin of loop (diff)
default for key_derivation_rate now 1
mind the debug output @ sender
-rw-r--r--anytun.cpp1
-rw-r--r--keyDerivation.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/anytun.cpp b/anytun.cpp
index 4312fa4..69ea165 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -91,7 +91,6 @@ void createConnection(const std::string & remote_host, u_int16_t remote_port, Co
seq_nr_t seq_nr_=0;
KeyDerivation * kd = new KeyDerivation;
kd->init(Buffer(key, sizeof(key)), Buffer(salt, sizeof(salt)));
- kd->setLogKDRate(0);
cLog.msg(Log::PRIO_NOTICE) << "added connection remote host " << remote_host << ":" << remote_port;
ConnectionParam connparam ( (*kd), (*seq), seq_nr_, remote_host, remote_port);
cl.addConnection(connparam,0);
diff --git a/keyDerivation.h b/keyDerivation.h
index 8776dd7..f660efa 100644
--- a/keyDerivation.h
+++ b/keyDerivation.h
@@ -51,7 +51,7 @@ typedef enum {
class KeyDerivation
{
public:
- KeyDerivation() : ld_kdr_(-1), master_salt_(0), cipher_(NULL) {};
+ KeyDerivation() : ld_kdr_(0), master_salt_(0), cipher_(NULL) {};
virtual ~KeyDerivation();
void init(Buffer key, Buffer salt);