Line 0
Link Here
|
|
|
1 |
--- src/common.h.orig 2017-01-02 14:27:26 UTC |
2 |
+++ src/common.h |
3 |
@@ -415,6 +415,15 @@ extern char *sys_errlist[]; |
4 |
/* opensslv.h requires prior opensslconf.h to include -fips in version string */ |
5 |
#include <openssl/opensslv.h> |
6 |
|
7 |
+#ifdef LIBRESSL_VERSION_NUMBER |
8 |
+#undef OPENSSL_VERSION_NUMBER |
9 |
+#if LIBRESSL_VERSION_NUMBER >= 0x2070000fL |
10 |
+#define OPENSSL_VERSION_NUMBER 0x10100000L |
11 |
+#else |
12 |
+#define OPENSSL_VERSION_NUMBER 0x1000107fL |
13 |
+#endif |
14 |
+#endif |
15 |
+ |
16 |
#if OPENSSL_VERSION_NUMBER<0x0090700fL |
17 |
#error OpenSSL 0.9.7 or later is required |
18 |
#endif /* OpenSSL older than 0.9.7 */ |