Package: hexchat Followup-For: Bug #1138424 X-Debbugs-Cc: [email protected] Control: tags -1 patch ftbfs
Dear Maintainer, The patch fixes the build error. -- 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 compatibility ERR_remove_state() was deprecated in older OpenSSL versions but still present until OpenSSL 3.x. It was fully removed in OpenSSL 4.0. Author: Ravi Kant Sharma <[email protected]> Bug-Ubuntu: https://bugs.launchpad.net/bugs/2154969 Bug-Debian: https://bugs.debian.org/1138424 Forwarded: no diff --git a/src/common/ssl.c b/src/common/ssl.c index e7f7e0a..7661cf9 100644 --- a/src/common/ssl.c +++ b/src/common/ssl.c @@ -354,8 +354,10 @@ _SSL_close (SSL * ssl) ERR_remove_thread_state (NULL); #endif #else +#if OPENSSL_VERSION_NUMBER < 0x40000000L ERR_remove_state (0); #endif +#endif } /* Hostname validation code based on OpenBSD's libtls. */

