Commit f5592cda authored by U-BENTLEY\Aleksandr.Konstantin's avatar U-BENTLEY\Aleksandr.Konstantin
Browse files

Fix for build on systems with openssl 1.1.0h

parent 7c6cca62
Pipeline #1455 failed with stage
in 12 minutes and 3 seconds
......@@ -16,7 +16,7 @@ namespace Arc {
void const* signature, unsigned int signatureSize) {
AutoPointer<EVP_PKEY> pkey(GetPublicKey(), &EVP_PKEY_free);
if(!pkey) return false;
AutoPointer<EVP_MD_CTX> ctx(EVP_MD_CTX_create(),&EVP_MD_CTX_destroy);
AutoPointer<EVP_MD_CTX> ctx(EVP_MD_CTX_new(),&EVP_MD_CTX_free);
if(!ctx) return false;
const EVP_MD* md = EVP_get_digestbyname(digestName);
if(!md) return false;
......
......@@ -13,7 +13,7 @@ namespace Arc {
bool JWSE::VerifyHMAC(char const* digestName, void const* message, unsigned int messageSize,
void const* signature, unsigned int signatureSize) {
AutoPointer<EVP_MD_CTX> ctx(EVP_MD_CTX_create(),&EVP_MD_CTX_destroy);
AutoPointer<EVP_MD_CTX> ctx(EVP_MD_CTX_new(),&EVP_MD_CTX_free);
if(!ctx) return false;
// EVP_sha256
const EVP_MD* md = EVP_get_digestbyname(digestName);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment