Add casts required for C++ CI and OpenSSL 3.x

This commit is contained in:
matt335672 2022-10-20 09:56:23 +01:00
parent 5cbf0cb5ac
commit 18c5538781

View File

@ -337,7 +337,7 @@ ssl_sha1_clear(void *sha1_info)
#else #else
if (sha1_info != NULL) if (sha1_info != NULL)
{ {
EVP_DigestInit_ex(sha1_info, g_md_sha1, NULL); EVP_DigestInit_ex((EVP_MD_CTX *)sha1_info, g_md_sha1, NULL);
} }
#endif #endif
} }
@ -417,7 +417,7 @@ ssl_md5_clear(void *md5_info)
#else #else
if (md5_info != NULL) if (md5_info != NULL)
{ {
EVP_DigestInit_ex(md5_info, g_md_md5, NULL); EVP_DigestInit_ex((EVP_MD_CTX *)md5_info, g_md_md5, NULL);
} }
#endif #endif
} }