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
1 changed files with 2 additions and 2 deletions

View File

@ -337,7 +337,7 @@ ssl_sha1_clear(void *sha1_info)
#else
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
}
@ -417,7 +417,7 @@ ssl_md5_clear(void *md5_info)
#else
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
}