diff options
author | Othmar Gsenger <otti@anytun.org> | 2007-12-26 11:57:10 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2007-12-26 11:57:10 +0000 |
commit | 38a06aa502da91cb17a960b462d639b4c7cf7726 (patch) | |
tree | cab2a37dccebf11b5649d18da16bb6cf2b6c4fd1 /connectionParam.h | |
parent | added keygeneration at hmac calculation (diff) |
added some Locks
Diffstat (limited to 'connectionParam.h')
-rw-r--r-- | connectionParam.h | 4 |
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_; |