Bug#1138399: libcrypt-ssleay-perl: patch for OpenSSL 4.0 compatibility
Ravi Kant Sharma
ravi.kant.sharma at canonical.com
Thu Jun 11 13:53:04 BST 2026
Package: 1138399
Followup-For: Bug #1138399
X-Debbugs-Cc: ravi.kant.sharma at canonical.com
Control: tags -1 patch
Please find attached a patch that fixes this issue.
-- System Information:
Debian Release: trixie/sid
APT prefers noble-updates
APT policy: (500, 'noble-updates'), (500, 'noble-security'), (500, 'noble'), (100, 'noble-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.8.0-117-generic (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
Description: Fix build failure with OpenSSL 4.0
OpenSSL 4.0 makes ASN1_STRING (and ASN1_TIME) fully opaque, removing
direct access to the ->data member. Replace with the
ASN1_STRING_get0_data() accessor function.
Forwarded: no
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2156448
Bug-Debian: https://bugs.debian.org/1138399
Last-Update: 2026-06-11
Index: libcrypt-ssleay-perl/SSLeay.xs
===================================================================
--- libcrypt-ssleay-perl.orig/SSLeay.xs 2026-06-11 14:35:30.281428386 +0200
+++ libcrypt-ssleay-perl/SSLeay.xs 2026-06-11 14:35:44.013483961 +0200
@@ -584,7 +584,7 @@
get_notBeforeString(cert)
X509 *cert
CODE:
- RETVAL = (char *)X509_get_notBefore(cert)->data;
+ RETVAL = (char *)ASN1_STRING_get0_data(X509_get_notBefore(cert));
OUTPUT:
RETVAL
@@ -592,7 +592,7 @@
get_notAfterString(cert)
X509 *cert
CODE:
- RETVAL = (char *)X509_get_notAfter(cert)->data;
+ RETVAL = (char *)ASN1_STRING_get0_data(X509_get_notAfter(cert));
OUTPUT:
RETVAL
More information about the pkg-perl-maintainers
mailing list