Skip to content

Commit f7e3b38

Browse files
Upgrade stunnel for work item 56658178 (#13502)
1 parent 9eb76af commit f7e3b38

7 files changed

Lines changed: 45 additions & 155 deletions

SPECS-EXTENDED/stunnel/stunnel-5.56-coverity.patch

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
From e951a8a7edc87dbd608043f8aab67ef12979e3ca Mon Sep 17 00:00:00 2001
1+
From 2d720572b081397b187f502980bb57a8301f06f0 Mon Sep 17 00:00:00 2001
22
From: Sahana Prasad <sahana@redhat.com>
33
Date: Mon, 12 Sep 2022 11:07:38 +0200
4-
Subject: [PATCH 6/8] Apply patch stunnel-5.56-curves-doc-update.patch
5-
4+
Subject: [PATCH 5/5] Apply patch stunnel-5.56-curves-doc-update.patch
5+
66
Patch-name: stunnel-5.56-curves-doc-update.patch
77
Patch-id: 6
88
From-dist-git-commit: 70b3076eb09912b3a11f371b8c523303114fffa3
@@ -14,25 +14,25 @@ From-dist-git-commit: 70b3076eb09912b3a11f371b8c523303114fffa3
1414
doc/stunnel.pl.pod.in | 2 ++
1515
doc/stunnel.pod.in | 2 ++
1616
6 files changed, 12 insertions(+)
17-
17+
1818
diff --git a/doc/stunnel.8.in b/doc/stunnel.8.in
19-
index a56f0b7..977a1a4 100644
19+
index e74e174..03b503b 100644
2020
--- a/doc/stunnel.8.in
2121
+++ b/doc/stunnel.8.in
22-
@@ -475,6 +475,8 @@ This file contains multiple CRLs, used with the \fIverifyChain\fR and
22+
@@ -490,6 +490,8 @@ This file contains multiple CRLs, used with the \fIverifyChain\fR and
2323
.IX Item "curves = list"
24-
\&\s-1ECDH\s0 curves separated with ':'
24+
ECDH curves separated with ':'
2525
.Sp
2626
+Note: This option is supported for server mode sockets only.
2727
+.Sp
2828
Only a single curve name is allowed for OpenSSL older than 1.1.1.
2929
.Sp
3030
To get a list of supported curves use:
3131
diff --git a/doc/stunnel.html.in b/doc/stunnel.html.in
32-
index 608afa9..cecc81a 100644
32+
index df0efdd..385ac8d 100644
3333
--- a/doc/stunnel.html.in
3434
+++ b/doc/stunnel.html.in
35-
@@ -570,6 +570,8 @@
35+
@@ -596,6 +596,8 @@
3636

3737
<p>ECDH curves separated with &#39;:&#39;</p>
3838

@@ -42,23 +42,23 @@ index 608afa9..cecc81a 100644
4242

4343
<p>To get a list of supported curves use:</p>
4444
diff --git a/doc/stunnel.pl.8.in b/doc/stunnel.pl.8.in
45-
index e2e6622..eae88f8 100644
45+
index 4efe602..9683b4c 100644
4646
--- a/doc/stunnel.pl.8.in
4747
+++ b/doc/stunnel.pl.8.in
48-
@@ -492,6 +492,8 @@ przez opcje \fIverifyChain\fR i \fIverifyPeer\fR.
48+
@@ -494,6 +494,8 @@ przez opcje \fIverifyChain\fR i \fIverifyPeer\fR.
4949
.IX Item "curves = lista"
50-
krzywe \s-1ECDH\s0 odddzielone ':'
50+
krzywe ECDH odddzielone ':'
5151
.Sp
5252
+Uwaga: ta opcja wpływa tylko na gniazda w trybie serwera.
5353
+.Sp
5454
Wersje OpenSSL starsze niż 1.1.1 pozwalają na użycie tylko jednej krzywej.
5555
.Sp
5656
Listę dostępnych krzywych można uzyskać poleceniem:
5757
diff --git a/doc/stunnel.pl.html.in b/doc/stunnel.pl.html.in
58-
index 7be87f1..7fd7a7c 100644
58+
index 8e40042..3025e9f 100644
5959
--- a/doc/stunnel.pl.html.in
6060
+++ b/doc/stunnel.pl.html.in
61-
@@ -568,6 +568,8 @@
61+
@@ -586,6 +586,8 @@
6262

6363
<p>krzywe ECDH odddzielone &#39;:&#39;</p>
6464

@@ -68,10 +68,10 @@ index 7be87f1..7fd7a7c 100644
6868

6969
<p>List&#x119; dost&#x119;pnych krzywych mo&#x17C;na uzyska&#x107; poleceniem:</p>
7070
diff --git a/doc/stunnel.pl.pod.in b/doc/stunnel.pl.pod.in
71-
index dc6b255..712f751 100644
71+
index 4419f9f..c48387a 100644
7272
--- a/doc/stunnel.pl.pod.in
7373
+++ b/doc/stunnel.pl.pod.in
74-
@@ -516,6 +516,8 @@ przez opcje I<verifyChain> i I<verifyPeer>.
74+
@@ -535,6 +535,8 @@ przez opcje I<verifyChain> i I<verifyPeer>.
7575

7676
krzywe ECDH odddzielone ':'
7777

@@ -81,10 +81,10 @@ index dc6b255..712f751 100644
8181

8282
Listę dostępnych krzywych można uzyskać poleceniem:
8383
diff --git a/doc/stunnel.pod.in b/doc/stunnel.pod.in
84-
index 840c708..85cc199 100644
84+
index 1a49d42..7a92697 100644
8585
--- a/doc/stunnel.pod.in
8686
+++ b/doc/stunnel.pod.in
87-
@@ -501,6 +501,8 @@ I<verifyPeer> options.
87+
@@ -533,6 +533,8 @@ I<verifyPeer> options.
8888

8989
ECDH curves separated with ':'
9090

@@ -94,5 +94,4 @@ index 840c708..85cc199 100644
9494

9595
To get a list of supported curves use:
9696
--
97-
2.37.3
98-
97+
2.46.0

SPECS-EXTENDED/stunnel/stunnel-5.62-disabled-curves.patch

Lines changed: 0 additions & 71 deletions
This file was deleted.

SPECS-EXTENDED/stunnel/stunnel-5.69-default-tls-version.patch

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 1d3349209f339e6a68312fce076e355bc767d76c Mon Sep 17 00:00:00 2001
1+
From 749c3b57caded6285cb5f76f17c4359e92474875 Mon Sep 17 00:00:00 2001
22
From: Clemens Lang <cllang@redhat.com>
33
Date: Mon, 12 Sep 2022 11:07:38 +0200
4-
Subject: [PATCH 5/7] Apply patch stunnel-5.69-default-tls-version.patch
4+
Subject: [PATCH] Apply patch stunnel-5.69-default-tls-version.patch
55

66
Patch-name: stunnel-5.69-default-tls-version.patch
77
Patch-id: 5
@@ -13,13 +13,13 @@ From-dist-git-commit: 70b3076eb09912b3a11f371b8c523303114fffa3
1313
3 files changed, 36 insertions(+), 16 deletions(-)
1414

1515
diff --git a/src/ctx.c b/src/ctx.c
16-
index 6a42a6b..cba24d9 100644
16+
index 3f3dbf8..7935e84 100644
1717
--- a/src/ctx.c
1818
+++ b/src/ctx.c
19-
@@ -152,19 +152,29 @@ int context_init(SERVICE_OPTIONS *section) { /* init TLS context */
20-
section->ctx=SSL_CTX_new(section->option.client ?
21-
TLS_client_method() : TLS_server_method());
22-
#endif /* OPENSSL_VERSION_NUMBER>=0x30000000L */
19+
@@ -168,19 +168,29 @@ int context_init(SERVICE_OPTIONS *section) { /* init TLS context */
20+
21+
/* set supported protocol versions */
22+
#if OPENSSL_VERSION_NUMBER>=0x10100000L
2323
- if(section->min_proto_version &&
2424
- !SSL_CTX_set_min_proto_version(section->ctx,
2525
- section->min_proto_version)) {
@@ -56,13 +56,13 @@ index 6a42a6b..cba24d9 100644
5656
+ return 1; /* FAILED */
5757
+ }
5858
}
59-
#else /* OPENSSL_VERSION_NUMBER<0x10100000L */
60-
if(section->option.client)
59+
#endif /* OPENSSL_VERSION_NUMBER>=0x10100000L */
60+
6161
diff --git a/src/options.c b/src/options.c
62-
index 4d31815..2ec5934 100644
62+
index 00196fc..1946129 100644
6363
--- a/src/options.c
6464
+++ b/src/options.c
65-
@@ -3371,8 +3371,9 @@ NOEXPORT const char *parse_service_option(CMD cmd, SERVICE_OPTIONS **section_ptr
65+
@@ -3437,8 +3437,9 @@ NOEXPORT const char *parse_service_option(CMD cmd, SERVICE_OPTIONS **section_ptr
6666
return "Invalid protocol version";
6767
return NULL; /* OK */
6868
case CMD_INITIALIZE:
@@ -74,7 +74,7 @@ index 4d31815..2ec5934 100644
7474
return "Invalid protocol version range";
7575
break;
7676
case CMD_PRINT_DEFAULTS:
77-
@@ -3390,7 +3391,10 @@ NOEXPORT const char *parse_service_option(CMD cmd, SERVICE_OPTIONS **section_ptr
77+
@@ -3456,7 +3457,10 @@ NOEXPORT const char *parse_service_option(CMD cmd, SERVICE_OPTIONS **section_ptr
7878
/* sslVersionMax */
7979
switch(cmd) {
8080
case CMD_SET_DEFAULTS:
@@ -86,7 +86,7 @@ index 4d31815..2ec5934 100644
8686
break;
8787
case CMD_SET_COPY:
8888
section->max_proto_version=new_service_options.max_proto_version;
89-
@@ -3421,7 +3425,10 @@ NOEXPORT const char *parse_service_option(CMD cmd, SERVICE_OPTIONS **section_ptr
89+
@@ -3487,7 +3491,10 @@ NOEXPORT const char *parse_service_option(CMD cmd, SERVICE_OPTIONS **section_ptr
9090
/* sslVersionMin */
9191
switch(cmd) {
9292
case CMD_SET_DEFAULTS:
@@ -99,10 +99,10 @@ index 4d31815..2ec5934 100644
9999
case CMD_SET_COPY:
100100
section->min_proto_version=new_service_options.min_proto_version;
101101
diff --git a/src/prototypes.h b/src/prototypes.h
102-
index 0ecd719..a126c9e 100644
102+
index 83496bd..d443e18 100644
103103
--- a/src/prototypes.h
104104
+++ b/src/prototypes.h
105-
@@ -940,6 +940,9 @@ ICON_IMAGE load_icon_default(ICON_TYPE);
105+
@@ -960,6 +960,9 @@ ICON_IMAGE load_icon_default(ICON_TYPE);
106106
ICON_IMAGE load_icon_file(const char *);
107107
#endif
108108

@@ -113,5 +113,5 @@ index 0ecd719..a126c9e 100644
113113

114114
/* end of prototypes.h */
115115
--
116-
2.39.2
116+
2.45.3
117117

SPECS-EXTENDED/stunnel/stunnel.signatures.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"Certificate-Creation": "d00fa133b7e7b241c6d973a70a2ae24d38afed6dfc06014aeff117f4cf8e0163",
44
"pop3-redirect.xinetd": "d4953253db8cfd8ea1449911ad32723bf7230a8c8edfb394c83b02feeb25f84b",
55
"sfinger.xinetd": "e9bb26d7e8fbe978d34168ecbb22205179345cfc1874b00c87de17bcb287d9a9",
6-
"stunnel-5.70.tar.gz": "7bbc7b9e9a988d76301325db4c110ec360a98ffb8a221c7accbff9c0a8bae2f3",
6+
"stunnel-5.74.tar.gz": "9bef235ab5d24a2a8dff6485dfd782ed235f4407e9bc8716deb383fc80cd6230",
77
"stunnel-pop3s-client.conf": "95379ab5046177833b717c4c832748d31ec314f469c67e9fe4b160876ca93066",
88
"stunnel-sfinger.conf": "4d06bccd910b1c8d89ed560fb8375e5e0b220e368a51ce6714e0bc2cd67dc6e4",
99
"stunnel@.service": "8e86d44d83d1722371393ff3943e1779111b033da5e89ad1e564d2e5e3be0d89"
1010
}
11-
}
11+
}

SPECS-EXTENDED/stunnel/stunnel.spec

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Summary: A TLS-encrypting socket wrapper
66
Name: stunnel
7-
Version: 5.70
7+
Version: 5.74
88
Release: 1%{?dist}
99
License: GPLv2
1010
Vendor: Microsoft Corporation
@@ -26,11 +26,8 @@ Patch1: stunnel-5.61-systemd-service.patch
2626
# platforms, OpenSSL supports the PROFILE=SYSTEM setting to use those
2727
# policies. Change stunnel to default to this setting.
2828
Patch3: stunnel-5.69-system-ciphers.patch
29-
Patch4: stunnel-5.56-coverity.patch
3029
Patch5: stunnel-5.69-default-tls-version.patch
3130
Patch6: stunnel-5.56-curves-doc-update.patch
32-
# Limit curves defaults in FIPS mode
33-
Patch8: stunnel-5.62-disabled-curves.patch
3431
# build test requirements
3532
BuildRequires: %{_bindir}/nc
3633
BuildRequires: %{_bindir}/pod2html
@@ -46,6 +43,7 @@ BuildRequires: openssl-devel
4643
BuildRequires: pkgconfig
4744
BuildRequires: systemd
4845
BuildRequires: util-linux
46+
BuildRequires: python-cryptography
4947
%{?systemd_requires}
5048
%if %{with libwrap}
5149
BuildRequires: tcp_wrappers-devel
@@ -143,6 +141,10 @@ make test || (for i in tests/logs/*.log ; do echo "$i": ; cat "$i" ; done)
143141
%systemd_postun_with_restart %{name}.service
144142

145143
%changelog
144+
* Mon Apr 21 2025 Sandeep Karambelkar <skarambelkar@microsoft.com> - 5.74-1
145+
- Upgrade to 5.74 and remove unwanted patches
146+
- Verified License
147+
146148
* Mon Sep 04 2023 Muhammad Falak R Wani <mwani@microsoft.com> - 5.70-1
147149
- Upgrade version to address CVE-2021-20230
148150
- Lint spec

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28546,8 +28546,8 @@
2854628546
"type": "other",
2854728547
"other": {
2854828548
"name": "stunnel",
28549-
"version": "5.70",
28550-
"downloadUrl": "https://www.stunnel.org/downloads/stunnel-5.70.tar.gz"
28549+
"version": "5.74",
28550+
"downloadUrl": "https://www.stunnel.org/downloads/stunnel-5.74.tar.gz"
2855128551
}
2855228552
}
2855328553
},

0 commit comments

Comments
 (0)