forked from Lainports/opnsense-ports
databases/freetds: sync with upstream
Taken from: FreeBSD
This commit is contained in:
parent
fefecb193b
commit
863834ef98
3 changed files with 28 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
PORTNAME= freetds
|
||||
PORTVERSION= 1.00.27
|
||||
PORTEPOCH= 1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= ftp://ftp.freetds.org/pub/freetds/stable/
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
--- src/tds/sec_negotiate_openssl.h.orig 2017-03-06 16:07:14 UTC
|
||||
+++ src/tds/sec_negotiate_openssl.h
|
||||
@@ -37,6 +37,11 @@
|
||||
#error HAVE_OPENSSL not defines, this file should not be included
|
||||
#endif
|
||||
|
||||
+#ifdef LIBRESSL_VERSION_NUMBER
|
||||
+#undef OPENSSL_VERSION_NUMBER
|
||||
+#define OPENSSL_VERSION_NUMBER 0x1000107fL
|
||||
+#endif
|
||||
+
|
||||
static inline const BIGNUM*
|
||||
rsa_get_n(const RSA *rsa)
|
||||
{
|
||||
|
|
@ -11,3 +11,16 @@
|
|||
#include <freetds/tds.h>
|
||||
#include <freetds/string.h>
|
||||
#include <freetds/tls.h>
|
||||
@@ -72,6 +76,12 @@
|
||||
#define SSL_PTR ptr
|
||||
#else
|
||||
|
||||
+#ifdef LIBRESSL_VERSION_NUMBER
|
||||
+static pthread_mutex_t *openssllocks;
|
||||
+#undef OPENSSL_VERSION_NUMBER
|
||||
+#define OPENSSL_VERSION_NUMBER 0x1000107fL
|
||||
+#endif
|
||||
+
|
||||
/* some compatibility layer */
|
||||
#if OPENSSL_VERSION_NUMBER < 0x1010000FL
|
||||
static inline void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue