blob: 9c39a225c1be0a9643a9c1345b5f29d63fb0d25f [file] [log] [blame]
Jayashankar Padatha0135602019-04-22 16:22:58 +05301#pragma once
2
3// With OpenSSL 1.1.0, some functions were deprecated. Need to abstract them
Manojkiran Eda19dd56b2024-06-17 14:29:52 +05304// to make the code backward compatible with older OpenSSL versions.
Jayashankar Padatha0135602019-04-22 16:22:58 +05305// Reference: https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes
6#if OPENSSL_VERSION_NUMBER < 0x10100000L
7
8#include <openssl/evp.h>
9
Adriana Kobylak58aa7502020-06-08 11:12:11 -050010extern "C"
11{
Patrick Williams04d78d12023-10-20 11:18:26 -050012EVP_MD_CTX* EVP_MD_CTX_new(void);
13void EVP_MD_CTX_free(EVP_MD_CTX* ctx);
Jayashankar Padatha0135602019-04-22 16:22:58 +053014}
15
16#endif // OPENSSL_VERSION_NUMBER < 0x10100000L