summaryrefslogtreecommitdiff
path: root/src/cipher.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-02 20:07:47 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-02 20:07:47 +0000
commit9dd6ba5addb0acafdde9599c8c777a78128735b6 (patch)
tree8f59663dbf1cdd61f5190f0f4fe578630f7e2673 /src/cipher.c
parentchanged to anytun compatible version (diff)
added define for anytun compat
Diffstat (limited to 'src/cipher.c')
-rw-r--r--src/cipher.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/cipher.c b/src/cipher.c
index d400ca8..b61dd22 100644
--- a/src/cipher.c
+++ b/src/cipher.c
@@ -239,10 +239,13 @@ buffer_t cipher_aesctr_calc_ctr(cipher_t* c, key_derivation_t* kd, seq_nr_t seq_
mpz_mul_2exp(ctr, ctr, 16);
result.buf_ = mpz_export(NULL, (size_t*)&result.length_, 1, 1, 0, 0, ctr);
-/* if(faked_msb) { */
-/* c->salt_.buf_[0] = 0; */
-/* result.buf_[0] = 0; */
-/* } */
+
+#ifndef ANYTUN_02_COMPAT
+ if(faked_msb) {
+ c->salt_.buf_[0] = 0;
+ result.buf_[0] = 0;
+ }
+#endif
mpz_clear(ctr);
mpz_clear(sid_mux);