Package: 1138337 Followup-For: Bug #1138337 X-Debbugs-Cc: [email protected] 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
Description: Fix FTBFS with OpenSSL 4.0 OpenSSL 4.0 makes X509_get_subject_name() return const X509_NAME* and X509_NAME_ENTRY_get_data() return const ASN1_STRING*. Use const-qualified variables to match the new return types. Author: Ravi Kant Sharma <[email protected]> Bug-Ubuntu: https://bugs.launchpad.net/bugs/2154884 Bug-Debian: https://bugs.debian.org/1138337 Forwarded: https://sourceforge.net/p/gsoap2/bugs/1325/ Index: gsoap/gsoap/stdsoap2.c =================================================================== --- gsoap.orig/gsoap/stdsoap2.c 2026-06-10 16:15:05.212060518 +0200 +++ gsoap/gsoap/stdsoap2.c 2026-06-10 16:15:05.207060496 +0200 @@ -6434,7 +6434,7 @@ } if (!(soap->ssl_flags & SOAP_SSL_SKIP_HOST_CHECK)) { - X509_NAME *subj; + const X509_NAME *subj; STACK_OF(CONF_VALUE) *val = NULL; #if OPENSSL_VERSION_NUMBER >= 0x0090800fL GENERAL_NAMES *names = NULL; @@ -6550,7 +6550,7 @@ int i = -1; do { - ASN1_STRING *name; + const ASN1_STRING *name; i = X509_NAME_get_index_by_NID(subj, NID_commonName, i); if (i == -1) break; Index: gsoap/gsoap/stdsoap2.cpp =================================================================== --- gsoap.orig/gsoap/stdsoap2.cpp 2026-06-10 14:48:57.539072858 +0200 +++ gsoap/gsoap/stdsoap2.cpp 2026-06-10 16:15:42.045221188 +0200 @@ -6434,7 +6434,7 @@ } if (!(soap->ssl_flags & SOAP_SSL_SKIP_HOST_CHECK)) { - X509_NAME *subj; + const X509_NAME *subj; STACK_OF(CONF_VALUE) *val = NULL; #if OPENSSL_VERSION_NUMBER >= 0x0090800fL GENERAL_NAMES *names = NULL; @@ -6550,7 +6550,7 @@ int i = -1; do { - ASN1_STRING *name; + const ASN1_STRING *name; i = X509_NAME_get_index_by_NID(subj, NID_commonName, i); if (i == -1) break;

