diff '--color=auto' -urN thrift-0.22.0.orig/lib/cpp/src/thrift/transport/TSSLSocket.cpp thrift-0.22.0/lib/cpp/src/thrift/transport/TSSLSocket.cpp --- thrift-0.22.0.orig/lib/cpp/src/thrift/transport/TSSLSocket.cpp 2026-02-15 14:57:19.613844362 +0100 +++ thrift-0.22.0/lib/cpp/src/thrift/transport/TSSLSocket.cpp 2026-02-15 14:58:47.558598842 +0100 @@ -157,15 +157,6 @@ #endif EVP_cleanup(); CRYPTO_cleanup_all_ex_data(); -#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(OPENSSL_IS_AWSLC) - // https://www.openssl.org/docs/man1.1.1/man3/OPENSSL_thread_stop.html - OPENSSL_thread_stop(); -#else - // ERR_remove_state() was deprecated in OpenSSL 1.0.0 and ERR_remove_thread_state() - // was deprecated in OpenSSL 1.1.0; these functions and should not be used. - // https://www.openssl.org/docs/manmaster/man3/ERR_remove_state.html - ERR_remove_state(0); -#endif ERR_free_strings(); mutexes.reset(); @@ -395,15 +386,6 @@ SSL_free(ssl_); ssl_ = nullptr; handshakeCompleted_ = false; -#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(OPENSSL_IS_AWSLC) - // https://www.openssl.org/docs/man1.1.1/man3/OPENSSL_thread_stop.html - OPENSSL_thread_stop(); -#else - // ERR_remove_state() was deprecated in OpenSSL 1.0.0 and ERR_remove_thread_state() - // was deprecated in OpenSSL 1.1.0; these functions and should not be used. - // https://www.openssl.org/docs/manmaster/man3/ERR_remove_state.html - ERR_remove_state(0); -#endif } TSocket::close(); }