summaryrefslogtreecommitdiff
path: root/cypherFactory.h
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2007-12-27 11:57:12 +0000
committerErwin Nindl <nine@wirdorange.org>2007-12-27 11:57:12 +0000
commita3e710fbd44ca8a0f4840b4e3366c6fc946ecfc5 (patch)
treeb5b189fa102e382da25b8c7385e628ed3889b335 /cypherFactory.h
parentadded 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.h13
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