aboutsummaryrefslogtreecommitdiffstats
path: root/testing/proftpd/openssl-1.1.1.patch
blob: 4bb864f458eebf53d66f902db0d22ae43b7f95b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/contrib/mod_auth_otp/crypto.c b/contrib/mod_auth_otp/crypto.c
index c479d56..9a6ccc1 100644
--- a/contrib/mod_auth_otp/crypto.c
+++ b/contrib/mod_auth_otp/crypto.c
@@ -50,17 +50,7 @@ void auth_otp_crypto_free(int flags) {
     ERR_free_strings();
 
 #if OPENSSL_VERSION_NUMBER >= 0x10000001L
-# if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
-     !defined(HAVE_LIBRESSL)
-    ERR_remove_thread_state();
-# else
-    /* The ERR_remove_state(0) usage is deprecated due to thread ID
-     * differences among platforms; see the OpenSSL-1.0.0c CHANGES file
-     * for details.  So for new enough OpenSSL installations, use the
-     * proper way to clear the error queue state.
-     */
     ERR_remove_thread_state(NULL);
-# endif /* OpenSSL-1.1.x and later */
 #else
     ERR_remove_state(0);
 #endif /* OpenSSL prior to 1.0.0-beta1 */