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/uanytun.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/uanytun.c') diff --git a/src/uanytun.c b/src/uanytun.c index 553a392..c9c6c44 100644 --- a/src/uanytun.c +++ b/src/uanytun.c @@ -101,7 +101,7 @@ typedef u_int8_t auth_algo_t; int init_main_loop(options_t* opt, cipher_t* c, auth_algo_t* aa, key_derivation_t* kd, seq_win_t* seq_win) { - int ret = cipher_init(c, opt->cipher_, opt->anytun02_compat_); + int ret = cipher_init(c, opt->cipher_); if(ret) { log_printf(ERROR, "could not initialize cipher of type %s", opt->cipher_); return ret; @@ -115,9 +115,7 @@ int init_main_loop(options_t* opt, cipher_t* c, auth_algo_t* aa, key_derivation_ return ret; } - if(opt->anytun02_compat_) - log_printf(NOTICE, "enabling anytun 0.2.x crypto compatiblity mode"); - ret = key_derivation_init(kd, opt->kd_prf_, opt->role_, opt->anytun02_compat_, opt->passphrase_, opt->key_.buf_, opt->key_.length_, opt->salt_.buf_, opt->salt_.length_); + ret = key_derivation_init(kd, opt->kd_prf_, opt->role_, opt->passphrase_, opt->key_.buf_, opt->key_.length_, opt->salt_.buf_, opt->salt_.length_); if(ret) { log_printf(ERROR, "could not initialize key derivation of type %s", opt->kd_prf_); cipher_close(c); -- cgit v1.2.3