Lines 1-11
Link Here
|
1 |
--- libarchive/archive_openssl_evp_private.h.orig Sun Jan 29 06:06:27 2017 |
1 |
--- libarchive/archive_openssl_evp_private.h.orig 2017-01-29 05:06:27 UTC |
2 |
+++ libarchive/archive_openssl_evp_private.h Fri Mar 10 12:53:43 2017 |
2 |
+++ libarchive/archive_openssl_evp_private.h |
3 |
@@ -28,7 +28,7 @@ |
3 |
@@ -28,7 +28,8 @@ |
4 |
#include <openssl/evp.h> |
4 |
#include <openssl/evp.h> |
5 |
#include <openssl/opensslv.h> |
5 |
#include <openssl/opensslv.h> |
6 |
|
6 |
|
7 |
-#if OPENSSL_VERSION_NUMBER < 0x10100000L |
7 |
-#if OPENSSL_VERSION_NUMBER < 0x10100000L |
8 |
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
8 |
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ |
|
|
9 |
+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) |
9 |
#include <stdlib.h> /* malloc, free */ |
10 |
#include <stdlib.h> /* malloc, free */ |
10 |
#include <string.h> /* memset */ |
11 |
#include <string.h> /* memset */ |
11 |
static inline EVP_MD_CTX *EVP_MD_CTX_new(void) |
12 |
static inline EVP_MD_CTX *EVP_MD_CTX_new(void) |