public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libserf] rawhide: Fix build with OpenSSL 4.0 (opaque ASN1_STRING)
@ 2026-06-12 19:39 Dmitry Belyavskiy
0 siblings, 0 replies; only message in thread
From: Dmitry Belyavskiy @ 2026-06-12 19:39 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libserf
Branch : rawhide
Commit : b8f0ecc6dffd2e0cffc75f33644f0e16cc91862a
Author : Dmitry Belyavskiy <beldmit@gmail.com>
Date : 2026-06-12T15:29:50-04:00
Stats : +22/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/libserf/c/b8f0ecc6dffd2e0cffc75f33644f0e16cc91862a?branch=rawhide
Log:
Fix build with OpenSSL 4.0 (opaque ASN1_STRING)
---
diff --git a/libserf-openssl4.patch b/libserf-openssl4.patch
new file mode 100644
index 0000000..bcbfa7b
--- /dev/null
+++ b/libserf-openssl4.patch
@@ -0,0 +1,17 @@
+--- a/buckets/ssl_buckets.c 2023-05-18 11:33:55.000000000 +0200
++++ b/buckets/ssl_buckets.c 2026-04-29 17:19:09.656612183 +0200
+@@ -567,11 +567,11 @@
+ switch (nm->type) {
+ case GEN_DNS:
+ if (copy_action == ErrorOnNul &&
+- strlen(nm->d.ia5->data) != nm->d.ia5->length)
++ strlen((const char *)ASN1_STRING_get0_data(nm->d.ia5)) != (size_t)ASN1_STRING_length(nm->d.ia5))
+ return SERF_ERROR_SSL_CERT_FAILED;
+ if (san_arr && *san_arr)
+- p = pstrdup_escape_nul_bytes((const char *)nm->d.ia5->data,
+- nm->d.ia5->length,
++ p = pstrdup_escape_nul_bytes((const char *)ASN1_STRING_get0_data(nm->d.ia5),
++ ASN1_STRING_length(nm->d.ia5),
+ pool);
+ break;
+ default:
diff --git a/libserf.spec b/libserf.spec
index 32d5fbd..f4572d6 100644
--- a/libserf.spec
+++ b/libserf.spec
@@ -3,7 +3,7 @@
Name: libserf
Version: 1.3.10
-Release: 13%{?dist}
+Release: 14%{?dist}
Summary: High-Performance Asynchronous HTTP Client Library
License: Apache-2.0
URL: https://serf.apache.org/
@@ -19,6 +19,7 @@ Patch1: %{name}-1.3.9-errgetfunc.patch
Patch2: %{name}-1.3.9-multihome.patch
Patch3: %{name}-1.3.9-cmake.patch
Patch4: %{name}-1.3.10-gssapi.patch
+Patch5: %{name}-openssl4.patch
%description
The serf library is a C-based HTTP client library built upon the Apache
@@ -87,6 +88,9 @@ grep '^Version: %{version}' %{buildroot}%{_libdir}/pkgconfig/serf-%{major}.pc
%{_libdir}/pkgconfig/serf*.pc
%changelog
+* Wed Apr 29 2026 Dmitry Belyavskiy <beldmit@gmail.com> - 1.3.10-14
+- Fix build with OpenSSL 4.0 (opaque ASN1_STRING)
+
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.10-13
- 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:39 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:39 [rpms/libserf] rawhide: Fix build with OpenSSL 4.0 (opaque ASN1_STRING) Dmitry Belyavskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox