From 6eaae824eb88873748984ec53f6bf285dd30244c Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 2 Oct 2008 15:30:57 +0000 Subject: 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_ and add_algorithm() still require a Library_State& however. --- checks/dolook.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'checks') 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) {} -- cgit v1.2.3