| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/databases/freetds/files/ |
Upload File : |
--- src/tds/tls.c.orig 2022-05-31 06:46:53 UTC +++ src/tds/tls.c @@ -53,6 +53,10 @@ #include <sys/socket.h> #endif +#if defined(__FreeBSD__) || defined(__DragonFly__) +#include <sys/socket.h> +#endif + #include <freetds/tds.h> #include <freetds/utils/string.h> #include <freetds/tls.h> @@ -74,6 +78,15 @@ #define SSL_PUSH_ARGS gnutls_transport_ptr_t ptr, const void *data, size_t len #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 !HAVE_BIO_GET_DATA