From 77df573a9551c5a344ad00b901b1bbd47cd57134 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 8 Apr 2016 15:54:08 +0200 Subject: openssl: Use proper EVP macro to determine size of a hash --- src/libstrongswan/plugins/openssl/openssl_hasher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstrongswan/plugins/openssl/openssl_hasher.c') diff --git a/src/libstrongswan/plugins/openssl/openssl_hasher.c b/src/libstrongswan/plugins/openssl/openssl_hasher.c index 8f7df0f8a..96ee230c9 100644 --- a/src/libstrongswan/plugins/openssl/openssl_hasher.c +++ b/src/libstrongswan/plugins/openssl/openssl_hasher.c @@ -43,7 +43,7 @@ struct private_openssl_hasher_t { METHOD(hasher_t, get_hash_size, size_t, private_openssl_hasher_t *this) { - return this->hasher->md_size; + return EVP_MD_size(this->hasher); } METHOD(hasher_t, reset, bool, -- cgit v1.2.3