Index: head/databases/freetds/files/patch-src_tds_sec_negotiate_openssl.h =================================================================== --- head/databases/freetds/files/patch-src_tds_sec_negotiate_openssl.h (revision 469308) +++ head/databases/freetds/files/patch-src_tds_sec_negotiate_openssl.h (nonexistent) @@ -1,14 +0,0 @@ ---- 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) - { Property changes on: head/databases/freetds/files/patch-src_tds_sec_negotiate_openssl.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/databases/freetds/files/patch-src_tds_sec__negotiate__openssl.h =================================================================== --- head/databases/freetds/files/patch-src_tds_sec__negotiate__openssl.h (nonexistent) +++ head/databases/freetds/files/patch-src_tds_sec__negotiate__openssl.h (revision 469309) @@ -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) + { Property changes on: head/databases/freetds/files/patch-src_tds_sec__negotiate__openssl.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/databases/freetds/files/patch-src_tds_tls.c =================================================================== --- head/databases/freetds/files/patch-src_tds_tls.c (revision 469308) +++ head/databases/freetds/files/patch-src_tds_tls.c (revision 469309) @@ -1,26 +1,29 @@ ---- src/tds/tls.c.orig 2015-06-09 10:38:40 UTC +--- src/tds/tls.c.orig 2017-11-30 09:00:01 UTC +++ src/tds/tls.c -@@ -46,6 +46,10 @@ - #include - #endif /* HAVE_SYS_STAT_H */ +@@ -50,6 +50,10 @@ + #include + #endif +#if defined(__FreeBSD__) || defined(__DragonFly__) +#include +#endif + #include #include #include -@@ -72,6 +76,12 @@ +@@ -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