aboutsummaryrefslogtreecommitdiffstats
path: root/checks/dolook.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-10-02 15:30:57 +0000
committerlloyd <[email protected]>2008-10-02 15:30:57 +0000
commit6eaae824eb88873748984ec53f6bf285dd30244c (patch)
treeaac39d26bdae6855cbbe0d50e05abdd08a00c0f8 /checks/dolook.cpp
parent7f7827b694044d9394fb45c18c6fe518a477fc0b (diff)
Revert part of revision b87599ffaee2d8ed2ec7597634413e73e4fb2fd8 that
added a new mandatory parameter of a Library_State& to get_cipher(). Do this so Monotone does not have to special case. Other lookup related functions like retrieve_<type> and add_algorithm() still require a Library_State& however.
Diffstat (limited to 'checks/dolook.cpp')
-rw-r--r--checks/dolook.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/checks/dolook.cpp b/checks/dolook.cpp
index dd1b22b9f..0c20448af 100644
--- a/checks/dolook.cpp
+++ b/checks/dolook.cpp
@@ -89,9 +89,9 @@ Filter* lookup_cipher(const std::string& algname, const std::string& key,
{
try {
if(encrypt)
- return get_cipher(global_state(), algname, key, iv, ENCRYPTION);
+ return get_cipher(algname, key, iv, ENCRYPTION);
else
- return get_cipher(global_state(), algname, key, iv, DECRYPTION);
+ return get_cipher(algname, key, iv, DECRYPTION);
}
catch(Algorithm_Not_Found) {}
catch(Invalid_Algorithm_Name) {}