diff options
author | lloyd <[email protected]> | 2010-10-13 03:15:13 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-13 03:15:13 +0000 |
commit | 406d4f8556d41083bfa551e7a777b0cb02925b6c (patch) | |
tree | 253b3adb3df631f1955c7d781f8dbe8920bd52b4 /src/engine | |
parent | 53d01738e99edfa58a061057186c2a72117ce5d7 (diff) |
Fix compile
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/openssl/ossl_md.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/engine/openssl/ossl_md.cpp b/src/engine/openssl/ossl_md.cpp index b2707eec4..0e16b3d90 100644 --- a/src/engine/openssl/ossl_md.cpp +++ b/src/engine/openssl/ossl_md.cpp @@ -21,12 +21,16 @@ class EVP_HashFunction : public HashFunction void clear(); std::string name() const { return algo_name; } HashFunction* clone() const; + + size_t hash_block_size() const { return block_size; } + EVP_HashFunction(const EVP_MD*, const std::string&); ~EVP_HashFunction(); private: void add_data(const byte[], size_t); void final_result(byte[]); + size_t block_size; std::string algo_name; EVP_MD_CTX md; }; @@ -72,7 +76,8 @@ HashFunction* EVP_HashFunction::clone() const */ EVP_HashFunction::EVP_HashFunction(const EVP_MD* algo, const std::string& name) : - HashFunction(EVP_MD_size(algo), EVP_MD_block_size(algo)), + HashFunction(EVP_MD_size(algo)), + block_size(EVP_MD_block_size(algo)), algo_name(name) { EVP_MD_CTX_init(&md); |