From 613afe3c92c202da1900ef2f7000425f6baabb9e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 7 Apr 2009 00:16:12 +0000 Subject: removed anytun02-compat mode --- src/cipherFactory.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/cipherFactory.cpp') diff --git a/src/cipherFactory.cpp b/src/cipherFactory.cpp index f6f383b..e9f0292 100644 --- a/src/cipherFactory.cpp +++ b/src/cipherFactory.cpp @@ -36,19 +36,19 @@ #include "cipher.h" -Cipher* CipherFactory::create(std::string const& type, kd_dir_t dir, bool anytun02_compat) +Cipher* CipherFactory::create(std::string const& type, kd_dir_t dir) { - if( type == "null" ) + if(type == "null") return new NullCipher(); #ifndef NO_CRYPT - else if( type == "aes-ctr" ) - return new AesIcmCipher(dir, anytun02_compat); - else if( type == "aes-ctr-128" ) - return new AesIcmCipher(dir, anytun02_compat, 128); - else if( type == "aes-ctr-192" ) - return new AesIcmCipher(dir, anytun02_compat, 192); - else if( type == "aes-ctr-256" ) - return new AesIcmCipher(dir, anytun02_compat, 256); + else if(type == "aes-ctr") + return new AesIcmCipher(dir); + else if(type == "aes-ctr-128") + return new AesIcmCipher(dir, 128); + else if(type == "aes-ctr-192") + return new AesIcmCipher(dir, 192); + else if(type == "aes-ctr-256") + return new AesIcmCipher(dir, 256); #endif else throw std::invalid_argument("cipher not available"); -- cgit v1.2.3