summaryrefslogtreecommitdiff
path: root/src/cipherFactory.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-15 13:37:22 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-15 13:37:22 +0000
commit5b27fb12f0dc01a4a282aa62028592795890a200 (patch)
tree528fd7822539e2a8d4dddec09b28b4f4349fa6de /src/cipherFactory.cpp
parentremoved useless buf variable @ some log messages (diff)
cipher now stores kd direction
Diffstat (limited to 'src/cipherFactory.cpp')
-rw-r--r--src/cipherFactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cipherFactory.cpp b/src/cipherFactory.cpp
index b02e5bc..bab0d5a 100644
--- a/src/cipherFactory.cpp
+++ b/src/cipherFactory.cpp
@@ -36,13 +36,13 @@
#include "cipher.h"
-Cipher* CipherFactory::create(std::string const& type)
+Cipher* CipherFactory::create(std::string const& type, kd_dir_t dir)
{
if( type == "null" )
return new NullCipher();
#ifndef NOCRYPT
else if( type == "aes-ctr" )
- return new AesIcmCipher();
+ return new AesIcmCipher(dir);
#endif
else
throw std::invalid_argument("cipher not available");