]> git.cameronkatri.com Git - ldid.git/commitdiff
Fix openssl 1.1.1 compatibility
authorTeutates <103068388+Teutates@users.noreply.github.com>
Thu, 7 Jul 2022 18:34:04 +0000 (14:34 -0400)
committerTeutates <103068388+Teutates@users.noreply.github.com>
Thu, 7 Jul 2022 18:34:04 +0000 (14:34 -0400)
ldid.cpp

index ac4d17aa50e6134a850da324125ef41f043b4c8a..5745e9b4f6943b44361f32e89226fdec88992c9b 100644 (file)
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -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() {