Ensure compatibility with LibreSSL

This commit is contained in:
Vlad Glagolev 2017-09-30 13:48:15 -04:00 committed by Ben RUBSON
parent 1f02e6341d
commit 566f4e48cf
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ Dependencies
EncFS depends on a number of libraries:
* fuse : the userspace filesystem layer
* openssl : used for cryptographic primitives
* openssl or libressl : used for cryptographic primitives
* tinyxml2 : for reading and writing XML configuration files
* gettext : internationalization support
* libintl : internationalization support

View File

@ -21,8 +21,8 @@
#ifndef _SSL_Compat_incl_
#define _SSL_Compat_incl_
// OpenSSL < 1.1.0
#if OPENSSL_VERSION_NUMBER < 0x10100000L
// OpenSSL < 1.1.0 or LibreSSL
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
// Equivalent methods
#define EVP_MD_CTX_new EVP_MD_CTX_create