summaryrefslogtreecommitdiff
path: root/anytun.cpp
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2007-08-28 22:49:34 +0000
committerErwin Nindl <nine@wirdorange.org>2007-08-28 22:49:34 +0000
commit1f3b16cbe8d4e8bddeb6a6f0757e179d11a09753 (patch)
treea2712e4421da969318ac9793d537a3f00e116926 /anytun.cpp
parentchanged ticket # to prefix in ripe request 410 (diff)
* changed cypher.*
* checkin for testing
Diffstat (limited to 'anytun.cpp')
-rw-r--r--anytun.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/anytun.cpp b/anytun.cpp
index f01d998..aca8fa0 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -89,8 +89,14 @@ void* sender(void* p)
param->kd.generate(label_satp_salt, seq, tmp_salt, tmp_salt.getLength());
param->c.setKey(tmp_key);
param->c.setSalt(tmp_salt);
+
+ std::cout << "seq: " << seq << std::endl << "sID: " << param->opt.getSenderId() << std::endl;
+ std::cout << "bevore cipher: " << std::endl << pack.getBuf() << std::endl;
+
param->c.cypher(pack, seq, param->opt.getSenderId());
+ std::cout << "after cipher: " << std::endl << pack.getBuf() << std::endl;
+
// add header to packet
pack.addHeader(seq, param->opt.getSenderId());
seq++;