blob: 9c39a225c1be0a9643a9c1345b5f29d63fb0d25f [file] [log] [blame]
#pragma once
// With OpenSSL 1.1.0, some functions were deprecated. Need to abstract them
// to make the code backward compatible with older OpenSSL versions.
// Reference: https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#include <openssl/evp.h>
extern "C"
{
EVP_MD_CTX* EVP_MD_CTX_new(void);
void EVP_MD_CTX_free(EVP_MD_CTX* ctx);
}
#endif // OPENSSL_VERSION_NUMBER < 0x10100000L