freebsd-ports/databases/freetds/files/patch-src_tds_sec__negotiate__openssl.h
Bernard Spil 58cd07eceb databases/freetds: Fix build with LibreSSL 2.7
- LibreSSL 2.7 introduces the OpenSSL 1.1 API

PR:		226911
Approved by:	maintainer time-out
2018-05-07 18:44:50 +00:00

14 lines
420 B
C

--- 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)
{