summaryrefslogtreecommitdiff
path: root/databases/freetds/files/patch-src_tds_sec__negotiate__openssl.h
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2018-05-07 18:44:50 +0000
committerBernard Spil <brnrd@FreeBSD.org>2018-05-07 18:44:50 +0000
commit58cd07ecebe240485d77f37625f813270a3ea6a8 (patch)
treec8ff7dc27478517bfde9b73c4d92a4c12e5307c1 /databases/freetds/files/patch-src_tds_sec__negotiate__openssl.h
parentUpdate the kqueue file monitering backend. (diff)
databases/freetds: Fix build with LibreSSL 2.7
- LibreSSL 2.7 introduces the OpenSSL 1.1 API PR: 226911 Approved by: maintainer time-out
Diffstat (limited to 'databases/freetds/files/patch-src_tds_sec__negotiate__openssl.h')
-rw-r--r--databases/freetds/files/patch-src_tds_sec__negotiate__openssl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/databases/freetds/files/patch-src_tds_sec__negotiate__openssl.h b/databases/freetds/files/patch-src_tds_sec__negotiate__openssl.h
new file mode 100644
index 000000000000..301e80834bf7
--- /dev/null
+++ b/databases/freetds/files/patch-src_tds_sec__negotiate__openssl.h
@@ -0,0 +1,14 @@
+--- src/tds/sec_negotiate_openssl.h.orig 2017-02-15 09:00:01 UTC
++++ src/tds/sec_negotiate_openssl.h
+@@ -37,6 +37,11 @@
+ #error HAVE_OPENSSL not defines, this file should not be included
+ #endif
+
++#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL
++#undef OPENSSL_VERSION_NUMBER
++#define OPENSSL_VERSION_NUMBER 0x1000107fL
++#endif
++
+ static inline const BIGNUM*
+ rsa_get_n(const RSA *rsa)
+ {