blob: 07a8cb8ec5ac5f63dfe6170aeeb752f834f29d83 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- src/tds/tls.c.orig 2017-11-30 09:00:01 UTC
+++ src/tds/tls.c
@@ -50,6 +50,10 @@
#include <sys/socket.h>
#endif
+#if defined(__FreeBSD__) || defined(__DragonFly__)
+#include <sys/socket.h>
+#endif
+
#include <freetds/tds.h>
#include <freetds/string.h>
#include <freetds/tls.h>
@@ -72,6 +76,15 @@
#define SSL_PTR ptr
#else
+#ifdef LIBRESSL_VERSION_NUMBER
+#if LIBRESSL_VERSION_NUMBER < 0x2070000FL
+static pthread_mutex_t *openssllocks;
+#undef OPENSSL_VERSION_NUMBER
+#define OPENSSL_VERSION_NUMBER 0x1000107fL
+#endif
+#define TLS_ST_OK SSL_ST_OK
+#endif
+
/* some compatibility layer */
#if OPENSSL_VERSION_NUMBER < 0x1010000FL
static inline void
|