aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-23 01:12:00 +0000
committerlloyd <[email protected]>2009-12-23 01:12:00 +0000
commit77064d4008372310be1e14645f37f6d15beeb600 (patch)
treea23dc7c2f82d333c3e3ac62bf6b2e02f78f119e0 /src
parente4bc193fd6232da46a3676f1e21e7a14bf5b1a6f (diff)
Oops, I was overzealous
Diffstat (limited to 'src')
-rw-r--r--src/libstate/lookup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstate/lookup.cpp b/src/libstate/lookup.cpp
index 090c25fca..9016dbe6e 100644
--- a/src/libstate/lookup.cpp
+++ b/src/libstate/lookup.cpp
@@ -80,7 +80,7 @@ bool have_hash(const std::string& algo_spec)
const MessageAuthenticationCode* retrieve_mac(const std::string& algo_spec)
{
Algorithm_Factory& af = global_state().algorithm_factory();
- return (af.prototype_mac(algo_spec) != 0);
+ return af.prototype_mac(algo_spec);
}
/**
@@ -89,7 +89,7 @@ const MessageAuthenticationCode* retrieve_mac(const std::string& algo_spec)
MessageAuthenticationCode* get_mac(const std::string& algo_spec)
{
Algorithm_Factory& af = global_state().algorithm_factory();
- return (af.make_mac(algo_spec) != 0);
+ return af.make_mac(algo_spec);
}
/**