public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dmitry Belyavskiy <beldmit@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/duo_unix] rawhide: Fix build with OpenSSL 4.0 (ASN1_STRING_data -> ASN1_STRING_get0_data)
Date: Fri, 12 Jun 2026 19:08:08 GMT	[thread overview]
Message-ID: <178129128812.1.16162369554298234352.rpms-duo_unix-1419b9f3d51a@fedoraproject.org> (raw)

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 \

                 reply	other threads:[~2026-06-12 19:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178129128812.1.16162369554298234352.rpms-duo_unix-1419b9f3d51a@fedoraproject.org \
    --to=beldmit@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox