aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-24 21:38:25 +0000
committerlloyd <[email protected]>2009-12-24 21:38:25 +0000
commit8e0c38eff91fc6c3df5cc0104704baa75149898e (patch)
treee6d79db18899068f8cfa77f2455f00c86d86b6ef /src/libstate
parentc85c79ac51b5829258dae7e51bb472b740da9574 (diff)
parenta48ae8f6c1aa605acbed76e9e2f1d6c2dcdd3d1e (diff)
propagate from branch 'net.randombit.botan' (head 367d157c1221a162f5b4098492944a509ef6d019)
to branch 'net.randombit.botan.c++0x' (head 1b9e8c4e92663f30b7d57b0fd8f57eb13cfce155)
Diffstat (limited to 'src/libstate')
-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 3b49116f6..9016dbe6e 100644
--- a/src/libstate/lookup.cpp
+++ b/src/libstate/lookup.cpp
@@ -71,7 +71,7 @@ HashFunction* get_hash(const std::string& algo_spec)
bool have_hash(const std::string& algo_spec)
{
Algorithm_Factory& af = global_state().algorithm_factory();
- return af.prototype_hash_function(algo_spec);
+ return (af.prototype_hash_function(algo_spec) != 0);
}
/**
@@ -98,7 +98,7 @@ MessageAuthenticationCode* get_mac(const std::string& algo_spec)
bool have_mac(const std::string& algo_spec)
{
Algorithm_Factory& af = global_state().algorithm_factory();
- return af.prototype_mac(algo_spec);
+ return (af.prototype_mac(algo_spec) != 0);
}
/**