Dear Maintainer, In Ubuntu, the attached patch fixes the FTBFS with OpenSSL 4.
Launchpad bug: https://bugs.launchpad.net/ubuntu/+source/identity4c/+bug/2154874 Thanks for considering the patch. - Brent Kerby
Description: Fix build with OpenSSL 4 by dropping removed cleanup API ERR_remove_thread_state() is deprecated since OpenSSL 1.1 and removed in OpenSSL 4. OpenSSL 1.1+ manages per-thread error state automatically, so this call is no longer needed. Author: Brent Kerby <[email protected]> Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/identity4c/+bug/2154874 Bug-Debian: http://bugs.debian.org/1138327 Forwarded: no Last-Update: 2026-07-16 =================================================================== --- a/identity-openssl-bridge.c +++ b/identity-openssl-bridge.c @@ -118,7 +118,6 @@ EVP_cleanup(); sk_free((_STACK *) SSL_COMP_get_compression_methods()); CRYPTO_cleanup_all_ex_data(); - ERR_remove_thread_state(NULL); ERR_free_strings(); }

