public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libcouchbase] rawhide: Migrated to OpenSSL 4.0: fix const X509_NAME* return from X509_get_subject_name
@ 2026-06-12 19:28 Dmitry Belyavskiy
0 siblings, 0 replies; only message in thread
From: Dmitry Belyavskiy @ 2026-06-12 19:28 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libcouchbase
Branch : rawhide
Commit : bf8adcc49ebfdd7f71c020b2a9ecd930d954d4e5
Author : Dmitry Belyavskiy <beldmit@gmail.com>
Date : 2026-04-30T18:17:00+02:00
Stats : +22/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/libcouchbase/c/bf8adcc49ebfdd7f71c020b2a9ecd930d954d4e5?branch=rawhide
Log:
Migrated to OpenSSL 4.0: fix const X509_NAME* return from X509_get_subject_name
---
diff --git a/libcouchbase-openssl4.patch b/libcouchbase-openssl4.patch
new file mode 100644
index 0000000..2eae266
--- /dev/null
+++ b/libcouchbase-openssl4.patch
@@ -0,0 +1,17 @@
+--- a/tests/ioserver/ssl_connection.cc 2025-09-11 03:06:29.000000000 +0200
++++ tests/ioserver/ssl_connection.cc 2026-04-30 18:11:55.999087664 +0200
+@@ -92,11 +92,13 @@
+ X509_gmtime_adj(X509_get_notAfter(x509), 31536000L);
+ X509_set_pubkey(x509, pkey);
+
+- X509_NAME *name = X509_get_subject_name(x509);
++ X509_NAME *name = X509_NAME_new();
+ X509_NAME_add_entry_by_txt(name, "C", MBSTRING_ASC, (unsigned char *)"CA", -1, -1, 0);
+ X509_NAME_add_entry_by_txt(name, "O", MBSTRING_ASC, (unsigned char *)"MyCompany Inc.", -1, -1, 0);
+ X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC, (unsigned char *)"localhost", -1, -1, 0);
++ X509_set_subject_name(x509, name);
+ X509_set_issuer_name(x509, name);
++ X509_NAME_free(name);
+ X509_sign(x509, pkey, EVP_sha384());
+
+ SSL_CTX_use_PrivateKey(ctx, pkey);
diff --git a/libcouchbase.spec b/libcouchbase.spec
index ccba72e..dd4231a 100644
--- a/libcouchbase.spec
+++ b/libcouchbase.spec
@@ -1,7 +1,7 @@
Summary: Client and protocol library for the Couchbase project
Name: libcouchbase
Version: 3.3.18
-Release: 3%{?dist}
+Release: 4%{?dist}
# Automatically converted from old format: ASL 2.0 - review is highly recommended.
License: Apache-2.0
BuildRequires: gcc, gcc-c++
@@ -20,6 +20,7 @@ Suggests: %{name}-tools%{_isa} = %{version}-%{release}
%endif
Patch0: %{name}-0001-enforce-system-crypto-policies.patch
+Patch1: %{name}-openssl4.patch
# exclude from "Provides" private IO plugins
%{?filter_provides_in: %filter_provides_in %{name}/%{name}.*\.so$}
@@ -108,6 +109,9 @@ export CTEST_OUTPUT_ON_FAILURE=1
%{_libdir}/pkgconfig/%{name}.pc
%changelog
+* Wed Apr 30 2026 Dmitry Belyavskiy <dbelyavs@redhat.com> - 3.3.18-4
+- Migrated to OpenSSL 4.0: fix const X509_NAME* return from X509_get_subject_name
+
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.18-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-12 19:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-12 19:28 [rpms/libcouchbase] rawhide: Migrated to OpenSSL 4.0: fix const X509_NAME* return from X509_get_subject_name Dmitry Belyavskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox