From 80deac76da26098dc244a2af9e03ee9bc5fc2d8d Mon Sep 17 00:00:00 2001 From: Bryan Lipinski Date: Tue, 11 Jun 2019 16:28:43 -0700 Subject: [PATCH] Use EVP_MAX_MD_SIZE instead of HMAC_MAX_MD_CBLOCK --- Release/src/http/oauth/oauth1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Release/src/http/oauth/oauth1.cpp b/Release/src/http/oauth/oauth1.cpp index 506d9f1faa..0e973aa401 100644 --- a/Release/src/http/oauth/oauth1.cpp +++ b/Release/src/http/oauth/oauth1.cpp @@ -136,7 +136,7 @@ std::vector oauth1_config::_hmac_sha1(const utility::string_t& ke std::vector oauth1_config::_hmac_sha1(const utility::string_t& key, const utility::string_t& data) { - unsigned char digest[HMAC_MAX_MD_CBLOCK]; + unsigned char digest[EVP_MAX_MD_SIZE]; unsigned int digest_len = 0; HMAC(EVP_sha1(),