From 566f4e48cfe0a8bd27b53718ec5c51b6235804f1 Mon Sep 17 00:00:00 2001 From: Vlad Glagolev Date: Sat, 30 Sep 2017 13:48:15 -0400 Subject: [PATCH] Ensure compatibility with LibreSSL --- INSTALL.md | 2 +- encfs/SSL_Compat.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 175e129..c52e8a4 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -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 diff --git a/encfs/SSL_Compat.h b/encfs/SSL_Compat.h index 276bf26..5025c32 100644 --- a/encfs/SSL_Compat.h +++ b/encfs/SSL_Compat.h @@ -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