Skip to content

Commit be807d4

Browse files
bryan-lipinskiBillyONeal
authored andcommitted
Use EVP_MAX_MD_SIZE instead of HMAC_MAX_MD_CBLOCK (#1155)
1 parent 0e9fef8 commit be807d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Release/src/http/oauth/oauth1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ std::vector<unsigned char> oauth1_config::_hmac_sha1(const utility::string_t& ke
136136

137137
std::vector<unsigned char> oauth1_config::_hmac_sha1(const utility::string_t& key, const utility::string_t& data)
138138
{
139-
unsigned char digest[HMAC_MAX_MD_CBLOCK];
139+
unsigned char digest[EVP_MAX_MD_SIZE];
140140
unsigned int digest_len = 0;
141141

142142
HMAC(EVP_sha1(),

0 commit comments

Comments
 (0)