Skip to content

Commit

Permalink
Use EVP_MAX_MD_SIZE instead of HMAC_MAX_MD_CBLOCK (#1155)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-lipinski authored and BillyONeal committed Jun 13, 2019
1 parent 0e9fef8 commit be807d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Release/src/http/oauth/oauth1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ std::vector<unsigned char> oauth1_config::_hmac_sha1(const utility::string_t& ke

std::vector<unsigned char> 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(),
Expand Down

0 comments on commit be807d4

Please sign in to comment.