diff options
author | Erwin Nindl <nine@wirdorange.org> | 2007-12-27 11:57:12 +0000 |
---|---|---|
committer | Erwin Nindl <nine@wirdorange.org> | 2007-12-27 11:57:12 +0000 |
commit | a3e710fbd44ca8a0f4840b4e3366c6fc946ecfc5 (patch) | |
tree | b5b189fa102e382da25b8c7385e628ed3889b335 /cypherFactory.h | |
parent | added anytun to isakmpd (diff) |
* cypher and auth-algo selectable via commandline
* libgcrypt uses secure memory now
* a few bugfixes
Diffstat (limited to 'cypherFactory.h')
-rw-r--r-- | cypherFactory.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/cypherFactory.h b/cypherFactory.h index 3f44827..f245301 100644 --- a/cypherFactory.h +++ b/cypherFactory.h @@ -31,7 +31,6 @@ #ifndef _CYPHER_FACTORY_H_ #define _CYPHER_FACTORY_H_ -#include <stdexcept> #include <string> #include "datatypes.h" @@ -43,17 +42,7 @@ public: CypherFactory() {}; ~CypherFactory() {}; - Cypher* create(std::string const& type) - { - if( type == "null" ) - return new NullCypher(); - else if( type == "aes" ) - return new AesIcmCypher(); - else - throw std::invalid_argument("cypher not available"); - } - + Cypher* create(std::string const& type); }; - #endif |