blob: 90569bfb7750efda2c3ee5e1d10ba061b1a0c9ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#pragma once
// With OpenSSL 1.1.0, some functions were deprecated. Need to abstract them
// to make the code backward compatible with older OpenSSL veresions.
// 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
|