diff options
author | Erwin Nindl <nine@wirdorange.org> | 2007-08-28 22:49:34 +0000 |
---|---|---|
committer | Erwin Nindl <nine@wirdorange.org> | 2007-08-28 22:49:34 +0000 |
commit | 1f3b16cbe8d4e8bddeb6a6f0757e179d11a09753 (patch) | |
tree | a2712e4421da969318ac9793d537a3f00e116926 /anytun.cpp | |
parent | changed ticket # to prefix in ripe request 410 (diff) |
* changed cypher.*
* checkin for testing
Diffstat (limited to 'anytun.cpp')
-rw-r--r-- | anytun.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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++; |