summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-12-11 12:36:06 +0000
committerOthmar Gsenger <otti@anytun.org>2007-12-11 12:36:06 +0000
commit0dd2114578f84735d1169d6e995ddbcb9f8003dc (patch)
tree87c7af2c7fa6da7b5793573ed31cb428a40ac29c
parentfixed many sync things (diff)
serialisation working!!!
-rw-r--r--keyDerivation.h2
-rw-r--r--syncBuffer.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/keyDerivation.h b/keyDerivation.h
index 8bce85c..10107d7 100644
--- a/keyDerivation.h
+++ b/keyDerivation.h
@@ -65,7 +65,7 @@ private:
void serialize(Archive & ar, const unsigned int version)
{
ar & ld_kdr_;
- //ar & salt_;
+ ar & salt_;
}
protected:
diff --git a/syncBuffer.h b/syncBuffer.h
index 222c197..9094d8f 100644
--- a/syncBuffer.h
+++ b/syncBuffer.h
@@ -48,7 +48,8 @@ private:
void serialize(Archive & ar, const unsigned int version)
{
ar & length_;
- ar & buf_;
+ for(u_int32_t i = 0; i < length_; i++)
+ ar & buf_[i];
}
};