public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Crypt-SSLeay] rawhide: Adapt to OpenSSL 4
@ 2026-07-07 8:59
0 siblings, 0 replies; only message in thread
From: @ 2026-07-07 8:59 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/perl-Crypt-SSLeay
Branch : rawhide
Commit : ebd792b1721ad645c4c49e5ad3ecb716aabed094
Author : Petr Písař <ppisar@redhat.com>
Date : 2026-07-07T10:58:55+02:00
Stats : +81/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Crypt-SSLeay/c/ebd792b1721ad645c4c49e5ad3ecb716aabed094?branch=rawhide
Log:
Adapt to OpenSSL 4
---
diff --git a/Crypt-SSLeay-0.72-Adapt-to-OpenSSL-4.patch b/Crypt-SSLeay-0.72-Adapt-to-OpenSSL-4.patch
new file mode 100644
index 0000000..0537a1d
--- /dev/null
+++ b/Crypt-SSLeay-0.72-Adapt-to-OpenSSL-4.patch
@@ -0,0 +1,74 @@
+From 948e9a3c658cc254df5ef3737378c65672a6c46d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Tue, 7 Jul 2026 10:33:02 +0200
+Subject: [PATCH] Adapt to OpenSSL 4
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+OpenSSL 4 made ASN1_STRING structure opaque and compilation failed:
+
+ SSLeay.xs: In function ‘XS_Crypt__SSLeay__X509_get_notBeforeString’:
+ SSLeay.xs:516:54: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
+ 516 | RETVAL = (char *)X509_get_notBefore(cert)->data;
+ | ^~
+ SSLeay.xs: In function ‘XS_Crypt__SSLeay__X509_get_notAfterString’:
+ SSLeay.xs:524:53: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘struct asn1_string_st’}
+ 524 | RETVAL = (char *)X509_get_notAfter(cert)->data;
+ | ^~
+
+This patch changes the two Perl subroutines to use the current OpenSSL
+API.
+---
+ SSLeay.xs | 20 ++++++++++++++++++++
+ 1 file changed, 20 insertions(+)
+
+diff --git a/SSLeay.xs b/SSLeay.xs
+index 47b4bcf..d9360c3 100644
+--- a/SSLeay.xs
++++ b/SSLeay.xs
+@@ -509,6 +509,15 @@ issuer_name(cert)
+ OUTPUT:
+ RETVAL
+
++#if SSLEAY_VERSION_NUMBER >= 0x40000000
++const char *
++get_notBeforeString(cert)
++ X509* cert
++ CODE:
++ RETVAL = (const char *)ASN1_STRING_get0_data(X509_get_notBefore(cert));
++ OUTPUT:
++ RETVAL
++#else
+ char *
+ get_notBeforeString(cert)
+ X509* cert
+@@ -516,7 +525,17 @@ get_notBeforeString(cert)
+ RETVAL = (char *)X509_get_notBefore(cert)->data;
+ OUTPUT:
+ RETVAL
++#endif
+
++#if SSLEAY_VERSION_NUMBER >= 0x40000000
++const char *
++get_notAfterString(cert)
++ X509* cert
++ CODE:
++ RETVAL = (const char *)ASN1_STRING_get0_data(X509_get_notAfter(cert));
++ OUTPUT:
++ RETVAL
++#else
+ char *
+ get_notAfterString(cert)
+ X509* cert
+@@ -524,6 +543,7 @@ get_notAfterString(cert)
+ RETVAL = (char *)X509_get_notAfter(cert)->data;
+ OUTPUT:
+ RETVAL
++#endif
+
+ MODULE = Crypt::SSLeay PACKAGE = Crypt::SSLeay::Version PREFIX = VERSION_
+
+--
+2.55.0
+
diff --git a/perl-Crypt-SSLeay.spec b/perl-Crypt-SSLeay.spec
index 38df346..44a5a1b 100644
--- a/perl-Crypt-SSLeay.spec
+++ b/perl-Crypt-SSLeay.spec
@@ -4,7 +4,7 @@
Name: perl-Crypt-SSLeay
Summary: OpenSSL glue that provides LWP with HTTPS support
Version: 0.72
-Release: 50%{?dist}
+Release: 51%{?dist}
License: Artistic-2.0
URL: https://metacpan.org/release/Crypt-SSLeay
Source0: https://cpan.metacpan.org/authors/id/N/NA/NANIS/Crypt-SSLeay-%{version}.tar.gz
@@ -17,6 +17,8 @@ Patch2: Crypt-SSLeay-0.72-Use-ExtUtils-PkgConfig-to-discover-OpenSSL-if-
# Stop using SSLv3_client_method with OpenSSL 1.1.1. TLS_client_method
# method is used instead.
Patch3: Crypt-SSLeay-0.72-Use_TLS_client_method-with-OpenSSL-1.1.1.patch
+# Adapt to OpenSSL 4, bug #2491639, CPAN RT#179961, proposed upstream
+Patch4: Crypt-SSLeay-0.72-Adapt-to-OpenSSL-4.patch
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
@@ -77,6 +79,7 @@ for that module to work.
%patch -P1 -p1
%patch -P2 -p1
%patch -P3 -p1
+%patch -P4 -p1
# Placate rpmlint
chmod -c -x lib/Net/SSL.pm
@@ -111,6 +114,9 @@ make test
%{_mandir}/man3/Net::SSL.3pm*
%changelog
+* Tue Jul 07 2026 Petr Pisar <ppisar@redhat.com> - 0.72-51
+- Adapt to OpenSSL 4 (bug #2491639)
+
* Fri Jun 12 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 0.72-50
- Rebuilt for openssl 4.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-07 8:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-07 8:59 [rpms/perl-Crypt-SSLeay] rawhide: Adapt to OpenSSL 4
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox