From: Guillem Jover Date: Mon, 8 Jun 2026 17:56:24 +0200 Subject: Do not use deprecated ERR_remove_state with OpenSSL > 1.0.0 This function is no longer visible starting with OpenSSL 4.0, and makes the build fail to compile. Closes: #1138302 --- gwlib/conn.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gwlib/conn.c b/gwlib/conn.c index ef1d165..d06b626 100644 --- a/gwlib/conn.c +++ b/gwlib/conn.c @@ -1356,7 +1356,9 @@ void conn_shutdown_ssl(void) SSL_CTX_free(global_ssl_context); CONF_modules_free(); +#if OPENSSL_VERSION_NUMBER < 0x10000000L ERR_remove_state(0); +#endif ENGINE_cleanup(); CONF_modules_unload(1); ERR_free_strings(); @@ -1370,7 +1372,9 @@ void server_shutdown_ssl(void) SSL_CTX_free(global_server_ssl_context); CONF_modules_free(); +#if OPENSSL_VERSION_NUMBER < 0x10000000L ERR_remove_state(0); +#endif ENGINE_cleanup(); CONF_modules_unload(1); ERR_free_strings();