public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/s-nail] rawhide: Add patch to fix OpenSSL 4.0 compatibility
@ 2026-06-12 19:54 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-06-12 19:54 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/s-nail
Branch : rawhide
Commit : 901253c0218234cd583c4769cb73b8d75d13a5a8
Author : Pavol Žáčik <pzacik@redhat.com>
Date   : 2026-05-11T07:10:54+02:00
Stats  : +54/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/s-nail/c/901253c0218234cd583c4769cb73b8d75d13a5a8?branch=rawhide

Log:
Add patch to fix OpenSSL 4.0 compatibility

---
diff --git a/s-nail-14.9.25-openssl4.patch b/s-nail-14.9.25-openssl4.patch
new file mode 100644
index 0000000..5a1397d
--- /dev/null
+++ b/s-nail-14.9.25-openssl4.patch
@@ -0,0 +1,49 @@
+From 6f7184ef83173b2d839cee40218ebae3bef9789e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Pavol=20=C5=BD=C3=A1=C4=8Dik?= <pzacik@redhat.com>
+Date: Mon, 11 May 2026 07:05:40 +0200
+Subject: [PATCH] Fix OpenSSL 4.0 compatibility
+
+Replace direct ASN1 structure field access with ASN1_STRING_get0_data() and ASN1_STRING_length() accessor functions.
+---
+ src/mx/xtls.c | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/src/mx/xtls.c b/src/mx/xtls.c
+index 7e244a5..bfc6b05 100644
+--- a/src/mx/xtls.c
++++ b/src/mx/xtls.c
+@@ -707,7 +707,7 @@ a_xtls_parse_asn1_time(ASN1_TIME const *atp, char *bdat, uz blen)
+       snprintf(bdat, blen, "%.*s", (int)l, mcp);
+    else {
+       snprintf(bdat, blen, _("Bogus certificate date: %.*s"),
+-         /*is (int)*/atp->length, (char const*)atp->data);
++         /*is (int)*/ASN1_STRING_length(atp), (char const*)ASN1_STRING_get0_data(atp));
+       mcp = NULL;
+    }
+ 
+@@ -1398,9 +1398,9 @@ a_xtls_check_host(struct mx_socket *sop, X509 *peercert,
+          if(gen->type == GEN_DNS){
+             if(n_poption & n_PO_D_V)
+                n_err(_("Comparing subject_alt_name: need<%s> is<%s>\n"),
+-                  urlp->url_host.s, (char*)gen->d.ia5->data);
++                  urlp->url_host.s, (char*)ASN1_STRING_get0_data(gen->d.ia5));
+             if((rv = n_tls_rfc2595_hostname_match(urlp->url_host.s,
+-                  (char*)gen->d.ia5->data)))
++                  (char*)ASN1_STRING_get0_data(gen->d.ia5))))
+                goto jleave;
+          }
+       }
+@@ -1522,8 +1522,8 @@ smime_verify(struct message *m, int n, a_XTLS_STACKOF(X509) *chain,
+             if (gen->type == GEN_EMAIL) {
+                if (n_poption & n_PO_D_V)
+                   n_err(_("Comparing subject_alt_name: need<%s> is<%s>)\n"),
+-                     sender, (char*)gen->d.ia5->data);
+-               if (!su_cs_cmp_case((char*)gen->d.ia5->data, sender))
++                     sender, (char*)ASN1_STRING_get0_data(gen->d.ia5));
++               if (!su_cs_cmp_case((char*)ASN1_STRING_get0_data(gen->d.ia5), sender))
+                   goto jfound;
+             }
+          }
+-- 
+2.53.0
+

diff --git a/s-nail.spec b/s-nail.spec
index 5568d8f..bc770bc 100644
--- a/s-nail.spec
+++ b/s-nail.spec
@@ -1,6 +1,6 @@
 Name:           s-nail
 Version:        14.9.25
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Environment for sending and receiving mail, providing functionality of POSIX mailx
 
 # Everything is ISC except parts coming from the original Heirloom mailx which are BSD
@@ -14,6 +14,7 @@ Source2:        steffen.asc
 # https://bugzilla.redhat.com/show_bug.cgi?id=2171723
 Patch0:		s-nail-makeflags.patch
 Patch1:		s-nail-14.9.25-test-sha256.patch
+Patch2:		s-nail-14.9.25-openssl4.patch
 
 BuildRequires:  make
 BuildRequires:  gnupg2
@@ -119,6 +120,9 @@ make test
 
 
 %changelog
+* Mon May 11 2026 Pavol Žáčik <pzacik@redhat.com> - 14.9.25-5
+- Add patch to fix OpenSSL 4.0 compatibility
+
 * Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.25-4
 - 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:54 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:54 [rpms/s-nail] rawhide: Add patch to fix OpenSSL 4.0 compatibility 

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