public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/sblim-wbemcli] rawhide: Condense patches related to WBEMCLI_CURL_SSLVERSION
@ 2026-11-04 8:55 Vitezslav Crhonek
0 siblings, 0 replies; only message in thread
From: Vitezslav Crhonek @ 2026-11-04 8:55 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/sblim-wbemcli
Branch : rawhide
Commit : 312d13b0b1c1df029f0bb7b7ed48e187fd7543e2
Author : Vitezslav Crhonek <vcrhonek@redhat.com>
Date : 2026-11-04T09:37:24+01:00
Stats : +27/-67 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/sblim-wbemcli/c/312d13b0b1c1df029f0bb7b7ed48e187fd7543e2?branch=rawhide
Log:
Condense patches related to WBEMCLI_CURL_SSLVERSION
---
diff --git a/sblim-wbemcli-1.6.1-ssl-proto-option.patch b/sblim-wbemcli-1.6.1-ssl-proto-option.patch
index e521435..50efb91 100644
--- a/sblim-wbemcli-1.6.1-ssl-proto-option.patch
+++ b/sblim-wbemcli-1.6.1-ssl-proto-option.patch
@@ -1,7 +1,7 @@
diff -up sblim-wbemcli-1.6.3/CimCurl.cpp.orig sblim-wbemcli-1.6.3/CimCurl.cpp
--- sblim-wbemcli-1.6.3/CimCurl.cpp.orig 2013-09-21 01:26:32.000000000 +0200
-+++ sblim-wbemcli-1.6.3/CimCurl.cpp 2026-05-07 10:41:47.367614702 +0200
-@@ -177,8 +177,42 @@ void CimomCurl::genRequest(URL &url, con
++++ sblim-wbemcli-1.6.3/CimCurl.cpp 2026-11-04 09:28:46.000000000 +0100
+@@ -177,8 +177,40 @@ void CimomCurl::genRequest(URL &url, con
rv = curl_easy_setopt(mHandle, CURLOPT_SSL_VERIFYHOST, 0);
// rv = curl_easy_setopt(mHandle, CURLOPT_SSL_VERIFYPEER, 0);
@@ -10,10 +10,8 @@ diff -up sblim-wbemcli-1.6.3/CimCurl.cpp.orig sblim-wbemcli-1.6.3/CimCurl.cpp
+ /* Force use of a specific SSL/TLS version */
+ char * curlSslVer = getenv("WBEMCLI_CURL_SSLVERSION");
+ if (curlSslVer) {
-+ if (!strcasecmp(curlSslVer,"SSLv2"))
-+ rv = curl_easy_setopt(mHandle, CURLOPT_SSLVERSION, CURL_SSLVERSION_SSLv2);
-+ else if (!strcasecmp(curlSslVer,"SSLv3"))
-+ rv = curl_easy_setopt(mHandle, CURLOPT_SSLVERSION, CURL_SSLVERSION_SSLv3);
++ if (!strcasecmp(curlSslVer,"SSLv2") || !strcasecmp(curlSslVer,"SSLv3"))
++ throw URLException("WBEMCLI_CURL_SSLVERSION: SSLv2 and SSLv3 are insecure and not supported");
+ else if (!strcasecmp(curlSslVer,"TLSv1"))
+ rv = curl_easy_setopt(mHandle, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);
+ else if (!strcasecmp(curlSslVer,"TLSv1.0") || !strcasecmp(curlSslVer,"TLSv1_0"))
@@ -48,20 +46,35 @@ diff -up sblim-wbemcli-1.6.3/CimCurl.cpp.orig sblim-wbemcli-1.6.3/CimCurl.cpp
if (url.user.length() > 0 && url.password.length() > 0) {
diff -up sblim-wbemcli-1.6.3/man/wbemcli.1.pre.in.orig sblim-wbemcli-1.6.3/man/wbemcli.1.pre.in
--- sblim-wbemcli-1.6.3/man/wbemcli.1.pre.in.orig 2009-06-20 01:10:57.000000000 +0200
-+++ sblim-wbemcli-1.6.3/man/wbemcli.1.pre.in 2026-05-07 10:41:47.367924604 +0200
-@@ -554,6 +554,15 @@ The example in the previous section can
++++ sblim-wbemcli-1.6.3/man/wbemcli.1.pre.in 2026-11-04 09:28:46.000000000 +0100
+@@ -554,6 +554,30 @@ The example in the previous section can
wbemcli gi 'myCimom/root/cimv2:rpm_package.name="glibc"'
.PP
+.SH ENVIRONMENT
+.TP
+.B WBEMCLI_CURL_SSLVERSION
-+Specifies the SSL/TLS protocol version hint passed to libcurl.
-+Valid values are SSLv2, SSLv3, TLSv1, TLSv1.0, TLSv1.1, TLSv1.2, TLSv1.3
-+(TLSv1.3 requires libcurl 7.61 or greater), with TLSv1.0-style aliases
-+TLSv1_0, TLSv1_1, TLSv1_2, and TLSv1_3 also accepted.
-+If this variable is not set, wbemcli will attempt to figure out the
-+remote SSL protocol version.
++Sets the lowest TLS version wbemcli will accept for https URLs.
++This is a minimum, not a fixed version: the handshake still negotiates the
++highest version both ends support, so a newer one is normally used.
++.IP
++Accepted values are TLSv1, TLSv1.0, TLSv1.1, TLSv1.2 and TLSv1.3, where
++TLSv1 and TLSv1.0 mean the same thing and TLSv1.3 requires libcurl 7.61 or
++later.
++The spellings TLSv1_0, TLSv1_1, TLSv1_2 and TLSv1_3 are also accepted, and
++the value is compared case\-insensitively.
++.IP
++The system\-wide crypto policy sets a lower bound that this variable cannot
++go below.
++Under the DEFAULT policy, asking for TLSv1, TLSv1.0 or TLSv1.1 therefore
++does not bring those versions back; the handshake fails instead.
++.IP
++SSLv2 and SSLv3 are refused outright, as is any unrecognised or empty
++value.
++In each of those cases wbemcli reports the error and exits without
++contacting the server.
++If the variable is unset, wbemcli does not restrict the version and
++libcurl's own default applies.
.SH FILES
.TP
.I @CACERT@
diff --git a/sblim-wbemcli-1.6.3-reject-insecure-ssl-versions.patch b/sblim-wbemcli-1.6.3-reject-insecure-ssl-versions.patch
deleted file mode 100644
index 614d1ca..0000000
--- a/sblim-wbemcli-1.6.3-reject-insecure-ssl-versions.patch
+++ /dev/null
@@ -1,51 +0,0 @@
---- a/CimCurl.cpp
-+++ b/CimCurl.cpp
-@@ -180,10 +180,8 @@ void CimomCurl::genRequest(URL &url, con
- /* Force use of a specific SSL/TLS version */
- char * curlSslVer = getenv("WBEMCLI_CURL_SSLVERSION");
- if (curlSslVer) {
-- if (!strcasecmp(curlSslVer,"SSLv2"))
-- rv = curl_easy_setopt(mHandle, CURLOPT_SSLVERSION, CURL_SSLVERSION_SSLv2);
-- else if (!strcasecmp(curlSslVer,"SSLv3"))
-- rv = curl_easy_setopt(mHandle, CURLOPT_SSLVERSION, CURL_SSLVERSION_SSLv3);
-+ if (!strcasecmp(curlSslVer,"SSLv2") || !strcasecmp(curlSslVer,"SSLv3"))
-+ throw URLException("WBEMCLI_CURL_SSLVERSION: SSLv2 and SSLv3 are insecure and not supported");
- else if (!strcasecmp(curlSslVer,"TLSv1"))
- rv = curl_easy_setopt(mHandle, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);
- else if (!strcasecmp(curlSslVer,"TLSv1.0") || !strcasecmp(curlSslVer,"TLSv1_0"))
---- a/man/wbemcli.1.pre.in
-+++ b/man/wbemcli.1.pre.in
-@@ -557,12 +557,27 @@ The example in the previous section can
- .SH ENVIRONMENT
- .TP
- .B WBEMCLI_CURL_SSLVERSION
--Specifies the SSL/TLS protocol version hint passed to libcurl.
--Valid values are SSLv2, SSLv3, TLSv1, TLSv1.0, TLSv1.1, TLSv1.2, TLSv1.3
--(TLSv1.3 requires libcurl 7.61 or greater), with TLSv1.0-style aliases
--TLSv1_0, TLSv1_1, TLSv1_2, and TLSv1_3 also accepted.
--If this variable is not set, wbemcli will attempt to figure out the
--remote SSL protocol version.
-+Sets the lowest TLS version wbemcli will accept for https URLs.
-+This is a minimum, not a fixed version: the handshake still negotiates the
-+highest version both ends support, so a newer one is normally used.
-+.IP
-+Accepted values are TLSv1, TLSv1.0, TLSv1.1, TLSv1.2 and TLSv1.3, where
-+TLSv1 and TLSv1.0 mean the same thing and TLSv1.3 requires libcurl 7.61 or
-+later.
-+The spellings TLSv1_0, TLSv1_1, TLSv1_2 and TLSv1_3 are also accepted, and
-+the value is compared case\-insensitively.
-+.IP
-+The system\-wide crypto policy sets a lower bound that this variable cannot
-+go below.
-+Under the DEFAULT policy, asking for TLSv1, TLSv1.0 or TLSv1.1 therefore
-+does not bring those versions back; the handshake fails instead.
-+.IP
-+SSLv2 and SSLv3 are refused outright, as is any unrecognised or empty
-+value.
-+In each of those cases wbemcli reports the error and exits without
-+contacting the server.
-+If the variable is unset, wbemcli does not restrict the version and
-+libcurl's own default applies.
- .SH FILES
- .TP
- .I @CACERT@
diff --git a/sblim-wbemcli.spec b/sblim-wbemcli.spec
index c28d093..15ca1e2 100644
--- a/sblim-wbemcli.spec
+++ b/sblim-wbemcli.spec
@@ -12,7 +12,6 @@ Patch2: sblim-wbemcli-1.6.1-ssl-proto-option.patch
Patch3: sblim-wbemcli-1.6.3-fix-exit-status.patch
Patch4: sblim-wbemcli-1.6.3-covscan-fixes.patch
Patch5: sblim-wbemcli-1.6.3-fix-cmx-crash.patch
-Patch6: sblim-wbemcli-1.6.3-reject-insecure-ssl-versions.patch
BuildRequires: make
BuildRequires: curl-devel >= 7.9.3
@@ -34,7 +33,6 @@ autoreconf --install --force
%patch -P3 -p1 -b .fix-exit-status
%patch -P4 -p1 -b .covscan-fixes
%patch -P5 -p1 -b .fix-cmx-crash
-%patch -P6 -p1 -b .reject-insecure-ssl-versions
%build
%configure CACERT=/etc/pki/Pegasus/client.pem
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-04 8:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 8:55 [rpms/sblim-wbemcli] rawhide: Condense patches related to WBEMCLI_CURL_SSLVERSION Vitezslav Crhonek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox