Added
Link Here
|
1 |
--- xbmc/utils/Digest.cpp |
2 |
+++ xbmc/utils/Digest.cpp |
3 |
@@ -94,11 +94,11 @@ |
4 |
|
5 |
void CDigest::MdCtxDeleter::operator()(EVP_MD_CTX* context) |
6 |
{ |
7 |
- EVP_MD_CTX_destroy(context); |
8 |
+ EVP_MD_CTX_free(context); |
9 |
} |
10 |
|
11 |
CDigest::CDigest(Type type) |
12 |
-: m_context{EVP_MD_CTX_create()}, m_md(TypeToEVPMD(type)) |
13 |
+: m_context{EVP_MD_CTX_new()}, m_md(TypeToEVPMD(type)) |
14 |
{ |
15 |
if (1 != EVP_DigestInit_ex(m_context.get(), m_md, nullptr)) |
16 |
{ |