summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);