git: c69c3c4c09ad - main - security/stunnel: Update to 5.65

From: Ryan Steinmetz <zi_at_FreeBSD.org>
Date: Sun, 17 Jul 2022 20:41:07 UTC
The branch main has been updated by zi:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c69c3c4c09adba8f9c15904c7b4482e856001be5

commit c69c3c4c09adba8f9c15904c7b4482e856001be5
Author:     Ryan Steinmetz <zi@FreeBSD.org>
AuthorDate: 2022-07-17 20:38:57 +0000
Commit:     Ryan Steinmetz <zi@FreeBSD.org>
CommitDate: 2022-07-17 20:39:33 +0000

    security/stunnel: Update to 5.65
---
 security/stunnel/Makefile                 |  2 +-
 security/stunnel/distinfo                 |  6 +++---
 security/stunnel/files/patch-src_client.c | 11 +++++++++++
 3 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/security/stunnel/Makefile b/security/stunnel/Makefile
index ea08a6fc6780..a743963f0950 100644
--- a/security/stunnel/Makefile
+++ b/security/stunnel/Makefile
@@ -1,7 +1,7 @@
 # Created by: Martti Kuparinen <martti.kuparinen@ericsson.com>
 
 PORTNAME=	stunnel
-DISTVERSION=	5.63
+DISTVERSION=	5.65
 PORTEPOCH=	1
 CATEGORIES=	security
 MASTER_SITES=	https://www.stunnel.org/downloads/archive/5.x/ \
diff --git a/security/stunnel/distinfo b/security/stunnel/distinfo
index 9add385d4e4f..404e9e9270b2 100644
--- a/security/stunnel/distinfo
+++ b/security/stunnel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1649178548
-SHA256 (stunnel-5.63.tar.gz) = c74c4e15144a3ae34b8b890bb31c909207301490bd1e51bfaaa5ffeb0a994617
-SIZE (stunnel-5.63.tar.gz) = 866754
+TIMESTAMP = 1658088789
+SHA256 (stunnel-5.65.tar.gz) = 60c500063bd1feff2877f5726e38278c086f96c178f03f09d264a2012d6bf7fc
+SIZE (stunnel-5.65.tar.gz) = 872293
diff --git a/security/stunnel/files/patch-src_client.c b/security/stunnel/files/patch-src_client.c
new file mode 100644
index 000000000000..181ffc5fa946
--- /dev/null
+++ b/security/stunnel/files/patch-src_client.c
@@ -0,0 +1,11 @@
+--- src/client.c.orig	2022-07-17 20:37:11 UTC
++++ src/client.c
+@@ -77,6 +77,8 @@ NOEXPORT int redirect(CLI *);
+ NOEXPORT void print_bound_address(CLI *);
+ NOEXPORT void reset(SOCKET, const char *);
+ 
++extern char **environ;
++
+ /* allocate local data structure for the new thread */
+ CLI *alloc_client_session(SERVICE_OPTIONS *opt, SOCKET rfd, SOCKET wfd) {
+     static unsigned long long seq=0;