Skip to content

Commit

Permalink
Fix openssl 1.1.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Teutates committed Jul 7, 2022
1 parent dfd6fcc commit 7f1a880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ldid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1938,8 +1938,8 @@ class HashBuffer :
sha1_ = EVP_MD_CTX_new();
sha256_ = EVP_MD_CTX_new();

EVP_DigestInit_ex2(sha1_, EVP_get_digestbyname("sha1"), nullptr);
EVP_DigestInit_ex2(sha256_, EVP_get_digestbyname("sha256"), nullptr);
EVP_DigestInit_ex(sha1_, EVP_get_digestbyname("sha1"), nullptr);
EVP_DigestInit_ex(sha256_, EVP_get_digestbyname("sha256"), nullptr);
}

~HashBuffer() {
Expand Down

0 comments on commit 7f1a880

Please sign in to comment.