diff options
Diffstat (limited to 'sys-fs/cryptsetup/files/cryptsetup-1.7.3-libressl.patch')
-rw-r--r-- | sys-fs/cryptsetup/files/cryptsetup-1.7.3-libressl.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-fs/cryptsetup/files/cryptsetup-1.7.3-libressl.patch b/sys-fs/cryptsetup/files/cryptsetup-1.7.3-libressl.patch new file mode 100644 index 000000000000..a7a708f427a3 --- /dev/null +++ b/sys-fs/cryptsetup/files/cryptsetup-1.7.3-libressl.patch @@ -0,0 +1,12 @@ +diff -Naur cryptsetup-1.7.3.orig/lib/crypto_backend/crypto_openssl.c cryptsetup-1.7.3/lib/crypto_backend/crypto_openssl.c +--- cryptsetup-1.7.3.orig/lib/crypto_backend/crypto_openssl.c 2016-10-28 01:58:10.000000000 -0700 ++++ cryptsetup-1.7.3/lib/crypto_backend/crypto_openssl.c 2016-11-02 13:38:46.094483756 -0700 +@@ -73,7 +73,7 @@ + /* + * Compatible wrappers for OpenSSL < 1.1.0 + */ +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + static EVP_MD_CTX *EVP_MD_CTX_new(void) + { + EVP_MD_CTX *md = malloc(sizeof(*md)); |