Date: Thu, 2 Jun 2022 05:30:46 GMT From: Muhammad Moinur Rahman <bofh@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: de3ce5e283c8 - main - databases/freetds: Update version 1.3.10=>1.3.11 Message-ID: <202206020530.2525UktN059309@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=de3ce5e283c8d28b0e8a0c7927b2219a3348cad4 commit de3ce5e283c8d28b0e8a0c7927b2219a3348cad4 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2022-06-02 04:25:13 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2022-06-02 05:30:29 +0000 databases/freetds: Update version 1.3.10=>1.3.11 Relnotes: https://github.com/FreeTDS/freetds/releases/tag/v1.3.11 --- databases/freetds/Makefile | 3 +- databases/freetds/distinfo | 6 +-- databases/freetds/files/patch-src_tds_tls.c | 70 +++-------------------------- 3 files changed, 9 insertions(+), 70 deletions(-) diff --git a/databases/freetds/Makefile b/databases/freetds/Makefile index 0283890c5679..30888353ef90 100644 --- a/databases/freetds/Makefile +++ b/databases/freetds/Makefile @@ -1,8 +1,7 @@ # Created by: Domas Mituzas <midom@dammit.lt> PORTNAME= freetds -PORTVERSION= 1.3.10 -PORTREVISION= 1 +PORTVERSION= 1.3.11 PORTEPOCH= 1 CATEGORIES= databases MASTER_SITES= https://www.freetds.org/files/stable/ \ diff --git a/databases/freetds/distinfo b/databases/freetds/distinfo index ae8d2fb334b0..048ac8db3273 100644 --- a/databases/freetds/distinfo +++ b/databases/freetds/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1650583357 -SHA256 (freetds-1.3.10.tar.bz2) = 819aeaf7feaa1bfdbc2213f81ad067061dd4c56245996a4e2b529d87296a5d63 -SIZE (freetds-1.3.10.tar.bz2) = 2245042 +TIMESTAMP = 1654110934 +SHA256 (freetds-1.3.11.tar.bz2) = 31ab43617cb096788975eb2b5503b32893f1faca2dabe31543b8c09a8d9d1b8a +SIZE (freetds-1.3.11.tar.bz2) = 2245358 diff --git a/databases/freetds/files/patch-src_tds_tls.c b/databases/freetds/files/patch-src_tds_tls.c index 35612e6faff3..028370fc1025 100644 --- a/databases/freetds/files/patch-src_tds_tls.c +++ b/databases/freetds/files/patch-src_tds_tls.c @@ -1,4 +1,4 @@ ---- src/tds/tls.c.orig 2021-08-31 09:00:01 UTC +--- src/tds/tls.c.orig 2022-05-31 06:46:53 UTC +++ src/tds/tls.c @@ -53,6 +53,10 @@ #include <sys/socket.h> @@ -11,19 +11,11 @@ #include <freetds/tds.h> #include <freetds/utils/string.h> #include <freetds/tls.h> -@@ -63,7 +67,7 @@ - - /** - * \addtogroup network -- * @{ -+ * @{ - */ - - #if defined(HAVE_GNUTLS) || defined(HAVE_OPENSSL) -@@ -75,6 +79,15 @@ +@@ -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; @@ -32,58 +24,6 @@ +#endif +#define TLS_ST_OK SSL_ST_OK +#endif -+ + /* some compatibility layer */ #if !HAVE_BIO_GET_DATA - static inline void -@@ -115,7 +128,7 @@ tds_pull_func_login(SSL_PULL_ARGS) - int have; - - tdsdump_log(TDS_DBG_FUNC, "in tds_pull_func_login\n"); -- -+ - /* here we are initializing (crypted inside TDS packets) */ - - /* if we have some data send it */ -@@ -450,7 +463,7 @@ tds_ssl_init(TDSSOCKET *tds) - const char *tls_msg; - - xcred = NULL; -- session = NULL; -+ session = NULL; - tls_msg = "initializing tls"; - - if (!tls_initialized) { -@@ -826,18 +839,25 @@ check_name_match(ASN1_STRING *name, const char *hostna - static int - check_name_match(ASN1_STRING *name, const char *hostname) - { -- char *name_utf8 = NULL; -+ char *name_utf8 = NULL, *tmp_name; - int ret, name_len; - - name_len = ASN1_STRING_to_UTF8((unsigned char **) &name_utf8, name); - if (name_len < 0) - return 0; - -+ tmp_name = tds_strndup(name_utf8, name_len); -+ OPENSSL_free(name_utf8); -+ if (!tmp_name) -+ return 0; -+ -+ name_utf8 = tmp_name; -+ - tdsdump_log(TDS_DBG_INFO1, "Got name %s\n", name_utf8); - ret = 0; - if (strlen(name_utf8) == name_len && check_wildcard(name_utf8, hostname)) - ret = 1; -- OPENSSL_free(name_utf8); -+ free(name_utf8); - return ret; - } - -@@ -1095,4 +1115,3 @@ tds_ssl_deinit(TDSCONNECTION *conn) - - #endif - /** @} */ --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206020530.2525UktN059309>