public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/duo_unix] rawhide: Fix build with OpenSSL 4.0 (ASN1_STRING_data -> ASN1_STRING_get0_data)
@ 2026-06-12 19:08 Dmitry Belyavskiy
  0 siblings, 0 replies; only message in thread
From: Dmitry Belyavskiy @ 2026-06-12 19:08 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/duo_unix
Branch : rawhide
Commit : 1419b9f3d51a05eb4597dce8ffb66731d0f0a4d6
Author : Dmitry Belyavskiy <beldmit@gmail.com>
Date   : 2026-04-29T21:22:49+02:00
Stats  : +23/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/duo_unix/c/1419b9f3d51a05eb4597dce8ffb66731d0f0a4d6?branch=rawhide

Log:
Fix build with OpenSSL 4.0 (ASN1_STRING_data -> ASN1_STRING_get0_data)

---
diff --git a/duo_unix-openssl4.patch b/duo_unix-openssl4.patch
new file mode 100644
index 0000000..36c815f
--- /dev/null
+++ b/duo_unix-openssl4.patch
@@ -0,0 +1,20 @@
+--- a/lib/https.c	2025-12-09 16:28:52.000000000 +0100
++++ b/lib/https.c	2026-04-29 21:20:45.146153792 +0200
+@@ -231,7 +231,7 @@
+         for (i = 0; i < n && match != 1; i++) {
+             const GENERAL_NAME *altname = sk_GENERAL_NAME_value(altnames, i);
+             if (hostnametype == altname->type) {
+-                char *altptr = (char *)ASN1_STRING_data(altname->d.ia5);
++                char *altptr = (char *)ASN1_STRING_get0_data(altname->d.ia5);
+                 size_t altsize = (size_t)ASN1_STRING_length(altname->d.ia5);
+ 
+                 if (altname->type == GEN_DNS) {
+@@ -258,7 +258,7 @@
+             if ((tmp = X509_NAME_ENTRY_get_data(
+                        X509_NAME_get_entry(subject, i))) != NULL &&
+                 ASN1_STRING_type(tmp) == V_ASN1_UTF8STRING) {
+-                const char *pattern = (char *)ASN1_STRING_data(tmp);
++                const char *pattern = (char *)ASN1_STRING_get0_data(tmp);
+                 size_t patternsize = (size_t)ASN1_STRING_length(tmp);
+                 if (patternsize == strlen(pattern)) {
+                     if (!strchr(pattern, '*')) {

diff --git a/duo_unix.spec b/duo_unix.spec
index 063e678..822cf2c 100644
--- a/duo_unix.spec
+++ b/duo_unix.spec
@@ -16,6 +16,8 @@ License:        GPL-2.0-with-classpath-exception AND Apache-2.0 AND BSD-2-Clause
 URL:            https://duo.com/
 Source:         https://dl.duosecurity.com/%{name}-%{version}.tar.gz
 
+Patch0:         duo_unix-openssl4.patch
+
 Suggests:       %{name}-doc = %{version}-%{release}
 
 BuildRequires:  bzip2
@@ -86,6 +88,7 @@ Requires:       pam_duo%{?_isa} = %{version}-%{release}
 
 %prep
 %setup -q
+%patch 0 -p1 -b .openssl4
 
 %build
 %configure \

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-12 19:08 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:08 [rpms/duo_unix] rawhide: Fix build with OpenSSL 4.0 (ASN1_STRING_data -> ASN1_STRING_get0_data) Dmitry Belyavskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox