aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-11 01:06:00 +0000
committerlloyd <[email protected]>2008-11-11 01:06:00 +0000
commitcff0e94bf7fdf16243ed04aa54e613a516fbade9 (patch)
tree9bdd29b408bd56f73a55f29d875bd41e0fd8f66b /src/libstate
parent88f4327ef993dfc15f1483e14df042a83bb459b7 (diff)
Drop look_add.h and the freestanding add_algorithm functions
Diffstat (limited to 'src/libstate')
-rw-r--r--src/libstate/info.txt1
-rw-r--r--src/libstate/look_add.h32
-rw-r--r--src/libstate/lookup.cpp33
3 files changed, 0 insertions, 66 deletions
diff --git a/src/libstate/info.txt b/src/libstate/info.txt
index 42b5e3e00..e5d591406 100644
--- a/src/libstate/info.txt
+++ b/src/libstate/info.txt
@@ -21,7 +21,6 @@ init.h
init.cpp
libstate.cpp
libstate.h
-look_add.h
lookup.cpp
lookup.h
policy.cpp
diff --git a/src/libstate/look_add.h b/src/libstate/look_add.h
deleted file mode 100644
index 44ae77727..000000000
--- a/src/libstate/look_add.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*************************************************
-* Lookup Table Management Header File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
-
-#ifndef BOTAN_LOOKUP_MANGEMENT_H__
-#define BOTAN_LOOKUP_MANGEMENT_H__
-
-#include <botan/libstate.h>
-
-#include <botan/block_cipher.h>
-#include <botan/stream_cipher.h>
-#include <botan/hash.h>
-#include <botan/mac.h>
-#include <botan/s2k.h>
-#include <botan/mode_pad.h>
-
-namespace Botan {
-
-/*************************************************
-* Add an algorithm to the lookup table *
-*************************************************/
-BOTAN_DLL void add_algorithm(Library_State&, BlockCipher*);
-BOTAN_DLL void add_algorithm(Library_State&, StreamCipher*);
-BOTAN_DLL void add_algorithm(Library_State&, HashFunction*);
-BOTAN_DLL void add_algorithm(Library_State&, MessageAuthenticationCode*);
-BOTAN_DLL void add_algorithm(Library_State&, S2K*);
-BOTAN_DLL void add_algorithm(Library_State&, BlockCipherModePaddingMethod*);
-
-}
-
-#endif
diff --git a/src/libstate/lookup.cpp b/src/libstate/lookup.cpp
index cbd2ff616..d16364cdc 100644
--- a/src/libstate/lookup.cpp
+++ b/src/libstate/lookup.cpp
@@ -27,14 +27,6 @@ BlockCipher* get_block_cipher(const std::string& algo_spec)
}
/**
-* Add a new block cipher
-*/
-void add_algorithm(Library_State& libstate, BlockCipher* algo)
- {
- libstate.algo_factory().add_block_cipher(algo);
- }
-
-/**
* Acquire a stream cipher
*/
const StreamCipher* retrieve_stream_cipher(Library_State& libstate,
@@ -52,14 +44,6 @@ StreamCipher* get_stream_cipher(const std::string& algo_spec)
}
/**
-* Add a new stream cipher
-*/
-void add_algorithm(Library_State& libstate, StreamCipher* algo)
- {
- libstate.algo_factory().add_stream_cipher(algo);
- }
-
-/**
* Acquire a hash function
*/
const HashFunction* retrieve_hash(Library_State& libstate,
@@ -77,14 +61,6 @@ HashFunction* get_hash(const std::string& algo_spec)
}
/**
-* Add a new hash function
-*/
-void add_algorithm(Library_State& libstate, HashFunction* algo)
- {
- libstate.algo_factory().add_hash_function(algo);
- }
-
-/**
* Query if Botan has the named hash function
*/
bool have_hash(const std::string& algo_spec)
@@ -118,15 +94,6 @@ bool have_mac(const std::string& algo_spec)
}
/**
-* Add a new authentication code
-*/
-void add_algorithm(Library_State& libstate,
- MessageAuthenticationCode* algo)
- {
- libstate.algo_factory().add_mac(algo);
- }
-
-/**
* Query if an algorithm exists
*/
bool have_algorithm(const std::string& name)