diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/crypto.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/crypto.h b/crypto/crypto.h index 3fbc328..9e2e840 100644 --- a/crypto/crypto.h +++ b/crypto/crypto.h @@ -7,7 +7,12 @@ #include <openssl/md5.h> #include <openssl/sha.h> #include <openssl/des.h> +#include <openssl/evp.h> +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined (LIBRESSL_VERSION_NUMBER) +#define EVP_MD_CTX_new EVP_MD_CTX_create +#define EVP_MD_CTX_free EVP_MD_CTX_destroy +#endif #else #ifdef CRYPTO_TOMCRYPT |