aboutsummaryrefslogtreecommitdiffstats
path: root/checks/dolook.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-29 03:34:12 +0000
committerlloyd <[email protected]>2008-09-29 03:34:12 +0000
commit7553b5f1461d58eae49e81c2e9bacdf0ea7d4cab (patch)
tree695c966ed348afd43a8d48979f02205cc6ad5f77 /checks/dolook.cpp
parentce7ef966e3a52731ad9d12a539d8db7fabe9f793 (diff)
Expose use of global state in some of the lookup functions, including
get_cipher
Diffstat (limited to 'checks/dolook.cpp')
-rw-r--r--checks/dolook.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/checks/dolook.cpp b/checks/dolook.cpp
index 5757c6042..dd1b22b9f 100644
--- a/checks/dolook.cpp
+++ b/checks/dolook.cpp
@@ -3,6 +3,7 @@
#include <botan/lookup.h>
#include <botan/filters.h>
+#include <botan/libstate.h>
#ifdef BOTAN_HAS_COMPRESSOR_BZIP2
#include <botan/bzip2.h>
@@ -88,9 +89,9 @@ Filter* lookup_cipher(const std::string& algname, const std::string& key,
{
try {
if(encrypt)
- return get_cipher(algname, key, iv, ENCRYPTION);
+ return get_cipher(global_state(), algname, key, iv, ENCRYPTION);
else
- return get_cipher(algname, key, iv, DECRYPTION);
+ return get_cipher(global_state(), algname, key, iv, DECRYPTION);
}
catch(Algorithm_Not_Found) {}
catch(Invalid_Algorithm_Name) {}