blob: 90569bfb7750efda2c3ee5e1d10ba061b1a0c9ad [file] [log] [blame]
Adriana Kobylak70ca2422018-09-06 14:23:38 -05001#pragma once
2
3// With OpenSSL 1.1.0, some functions were deprecated. Need to abstract them
4// to make the code backward compatible with older OpenSSL veresions.
5// 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
10extern "C" {
11EVP_MD_CTX* EVP_MD_CTX_new(void);
12void EVP_MD_CTX_free(EVP_MD_CTX* ctx);
13}
14
15#endif // OPENSSL_VERSION_NUMBER < 0x10100000L