From 77ad68a6589e66a67df25df18c731c58c1f2a603 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Tue, 10 Nov 2015 20:29:33 +0300 Subject: [PATCH] sample/https-client: replace ERR_remove_state() by ERR_remove_thread_state() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since ERR_remove_state() is deprecated: $ git log --grep ERR_remove_thread_state commit 2ecd2ededece66bf090fefc93ef3ddb672d9e71a Author: Bodo Möller Date: Wed Aug 13 19:30:01 2008 +0000 Mention ERR_remove_state() deprecation, and ERR_remove_thread_state(NULL). Link: https://www.openssl.org/docs/manmaster/crypto/ERR_remove_state.html --- sample/https-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/https-client.c b/sample/https-client.c index d0f9d070..c28a4ad8 100644 --- a/sample/https-client.c +++ b/sample/https-client.c @@ -471,7 +471,7 @@ cleanup: EVP_cleanup(); ERR_free_strings(); - ERR_remove_state(0); + ERR_remove_thread_state(NULL); CRYPTO_cleanup_all_ex_data(); sk_SSL_COMP_free(SSL_COMP_get_compression_methods());