Lines 21-28
Link Here
|
21 |
#ifndef _SSL_Compat_incl_ |
21 |
#ifndef _SSL_Compat_incl_ |
22 |
#define _SSL_Compat_incl_ |
22 |
#define _SSL_Compat_incl_ |
23 |
|
23 |
|
24 |
// OpenSSL < 1.1.0 |
24 |
// OpenSSL < 1.1.0 or LibreSSL |
25 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L |
25 |
#if defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x10100000L) |
26 |
|
26 |
|
27 |
// Equivalent methods |
27 |
// Equivalent methods |
28 |
#define EVP_MD_CTX_new EVP_MD_CTX_create |
28 |
#define EVP_MD_CTX_new EVP_MD_CTX_create |