diff options
author | lloyd <[email protected]> | 2008-11-10 19:48:28 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-10 19:48:28 +0000 |
commit | 148c4ecbd4116f9420229853b567cc17310b1cd1 (patch) | |
tree | b524196bbfc31bd4c3bc2b9b28b024c8cd530cd7 /src/libstate/engine/openssl/ossl_md.cpp | |
parent | 25ba52f32245a1624cbf5dcd3ca748b7f09d9ab2 (diff) |
Use Algorithm_Factory and SCAN_Name for all hash lookups. Modify engines
accordingly.
Diffstat (limited to 'src/libstate/engine/openssl/ossl_md.cpp')
-rw-r--r-- | src/libstate/engine/openssl/ossl_md.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstate/engine/openssl/ossl_md.cpp b/src/libstate/engine/openssl/ossl_md.cpp index d009e4c42..04ef59f99 100644 --- a/src/libstate/engine/openssl/ossl_md.cpp +++ b/src/libstate/engine/openssl/ossl_md.cpp @@ -91,10 +91,9 @@ EVP_HashFunction::~EVP_HashFunction() /************************************************* * Look for an algorithm with this name * *************************************************/ -HashFunction* OpenSSL_Engine::find_hash(const std::string& algo_spec) const +HashFunction* OpenSSL_Engine::find_hash(const SCAN_Name& request, + Algorithm_Factory&) const { - SCAN_Name request(algo_spec); - if(request.algo_name() == "SHA-160") return new EVP_HashFunction(EVP_sha1(), "SHA-160"); |