Package: libesmtp Version: libesmtp Followup-For: Bug #1138308 X-Debbugs-Cc: [email protected] Control: tags -1 ftbfs patch
Dear Maintainer, The patch fixes the FTBFS with openssl 4. -- 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) 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
Description: Fix for OpenSSL4 compatibilty Use ASN1_STRING_get0_data() and ASN1_STRING_length() accessors instead of directly accessing ->data and ->length fields. Author: Ravi Kant Sharma <[email protected]> Bug-Ubuntu: https://bugs.launchpad.net/bugs/2132257 --- Bug-Debian: https://bugs.debian.org/1138308 Forwarded: yes Last-Update: 2026-06-03 --- libesmtp-1.1.0.orig/smtp-tls.c +++ libesmtp-1.1.0/smtp-tls.c @@ -570,8 +570,8 @@ check_acceptable_security (smtp_session_ if (name->type == GEN_DNS) { - const char *ia5str = (const char *) name->d.ia5->data; - size_t ia5len = name->d.ia5->length; + const char *ia5str = (const char *) ASN1_STRING_get0_data(name->d.ia5); + size_t ia5len = ASN1_STRING_length(name->d.ia5); hasaltname = 1; if (strlen (ia5str) == ia5len && match_domain (host, ia5str))

