]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Every openssl we support has ERR_remove_thread_state
authorNick Mathewson <nickm@torproject.org>
Tue, 10 Nov 2015 15:13:04 +0000 (10:13 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 10 Nov 2015 15:13:04 +0000 (10:13 -0500)
src/common/compat_openssl.h
src/common/crypto.c

index 96c00c79934a9451ccafcfbe13f8e4c6183f0d07..23f695064a2f3bfcd2fd6dd19faea910fb417f02 100644 (file)
@@ -24,7 +24,6 @@
 #define OpenSSL_version(v) SSLeay_version(v)
 #define OpenSSL_version_num() SSLeay()
 #define RAND_OpenSSL() RAND_SSLeay()
-#define tor_ERR_remove_cur_thread_state() ERR_remove_state(0)
 #ifndef SSL_get_state
 #define SSL_get_state(ssl) SSL_state(ssl)
 #endif
@@ -33,7 +32,6 @@
    ((st) == SSL3_ST_SW_SRVR_HELLO_B))
 #define OSSL_HANDSHAKE_STATE int
 #else
-#define tor_ERR_remove_cur_thread_state() ERR_remove_thread_state(NULL)
 #define STATE_IS_SW_SERVER_HELLO(st) \
   ((st) == TLS_ST_SW_SRVR_HELLO)
 #endif
index 5feb9be2c2cb04b45b8b83a57c2b46017681eac7..4c41d4494d488d286aef28ef17c958da8a791bdc 100644 (file)
@@ -403,7 +403,7 @@ crypto_global_init(int useAccel, const char *accelName, const char *accelDir)
 void
 crypto_thread_cleanup(void)
 {
-  tor_ERR_remove_cur_thread_state();
+  ERR_remove_thread_state(NULL);
 }
 
 /** used by tortls.c: wrap an RSA* in a crypto_pk_t. */
@@ -2690,7 +2690,7 @@ int
 crypto_global_cleanup(void)
 {
   EVP_cleanup();
-  tor_ERR_remove_cur_thread_state();
+  ERR_remove_thread_state(NULL);
   ERR_free_strings();
 
   if (dh_param_p)