summaryrefslogtreecommitdiff
path: root/connectionParam.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-12-26 11:57:10 +0000
committerOthmar Gsenger <otti@anytun.org>2007-12-26 11:57:10 +0000
commit38a06aa502da91cb17a960b462d639b4c7cf7726 (patch)
treecab2a37dccebf11b5649d18da16bb6cf2b6c4fd1 /connectionParam.h
parentadded keygeneration at hmac calculation (diff)
added some Locks
Diffstat (limited to 'connectionParam.h')
-rw-r--r--connectionParam.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/connectionParam.h b/connectionParam.h
index cf8df3b..5e00e25 100644
--- a/connectionParam.h
+++ b/connectionParam.h
@@ -36,6 +36,7 @@
#include "cypher.h"
#include "authAlgo.h"
#include "seqWindow.h"
+#include "threadUtils.hpp"
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
@@ -51,10 +52,13 @@ public:
u_int16_t remote_port_;
ConnectionParam(const ConnectionParam & src);
private:
+//TODO check if this is ok
+ Mutex mutex_;
friend class boost::serialization::access;
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
{
+ Lock lock(mutex_);
ar & kd_;
ar & seq_window_;
ar & seq_nr_;