public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/sblim-wbemcli] rawhide: Changes 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 : 73c21c180cb67e0b8c402929744e4a7314a1eb14
Author : Vitezslav Crhonek <vcrhonek@redhat.com>
Date : 2026-11-04T09:23:45+01:00
Stats : +58/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/sblim-wbemcli/c/73c21c180cb67e0b8c402929744e4a7314a1eb14?branch=rawhide
Log:
Changes to WBEMCLI_CURL_SSLVERSION
Explicitly reject the insecure SSLv2/SSLv3 values
of WBEMCLI_CURL_SSLVERSION (these were disabled
by system crypto policy anyway) and document the
variable as selecting a minimum TLS version.
---
diff --git a/sblim-wbemcli-1.6.3-reject-insecure-ssl-versions.patch b/sblim-wbemcli-1.6.3-reject-insecure-ssl-versions.patch
new file mode 100644
index 0000000..614d1ca
--- /dev/null
+++ b/sblim-wbemcli-1.6.3-reject-insecure-ssl-versions.patch
@@ -0,0 +1,51 @@
+--- 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 e39a575..c28d093 100644
--- a/sblim-wbemcli.spec
+++ b/sblim-wbemcli.spec
@@ -1,6 +1,6 @@
Name: sblim-wbemcli
Version: 1.6.3
-Release: 34%{?dist}
+Release: 35%{?dist}
Summary: SBLIM WBEM Command Line Interface
License: EPL-1.0
@@ -12,6 +12,7 @@ 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
@@ -33,6 +34,7 @@ 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
@@ -49,6 +51,10 @@ mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}
%{_datadir}/%{name}
%changelog
+* Wed Nov 04 2026 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.6.3-35
+- Reject the insecure SSLv2/SSLv3 values of WBEMCLI_CURL_SSLVERSION and
+ document the variable as selecting a minimum TLS version
+
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ 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: Changes 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