From c3e9f547e8da6b20c314f3d61661407a65a6111a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 7 Apr 2009 02:02:06 +0000 Subject: removed anytun02 compat mode --- src/cipher.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/cipher.c') diff --git a/src/cipher.c b/src/cipher.c index 13b2fa6..5fba4af 100644 --- a/src/cipher.c +++ b/src/cipher.c @@ -44,12 +44,11 @@ #include #include -int cipher_init(cipher_t* c, const char* type, int8_t anytun02_compat) +int cipher_init(cipher_t* c, const char* type) { if(!c) return -1; - c->anytun02_compat_ = anytun02_compat; c->key_length_ = 0; c->type_ = c_unknown; @@ -262,11 +261,6 @@ int cipher_aesctr_calc_ctr(cipher_t* c, key_derivation_t* kd, key_derivation_dir if(ret < 0) return ret; - if(c->anytun02_compat_) { - if(!c->salt_.buf_[0]) - c->salt_.buf_[0] = 1; - } - memcpy(params->ctr_.salt_.buf_, c->salt_.buf_, C_AESCTR_SALT_LENGTH); params->ctr_.salt_.zero_ = 0; params->ctr_.params_.mux_ ^= MUX_T_HTON(mux); -- cgit v1.2.3