libeap: don't shut down openssl
authorSam Hartman <hartmans@debian.org>
Thu, 12 Mar 2015 14:46:51 +0000 (10:46 -0400)
committerSam Hartman <hartmans@debian.org>
Fri, 27 Mar 2015 12:14:56 +0000 (08:14 -0400)
we're a library.  It's antisocial to close down openssl application
wide just because one eap state machine is ending.

(cherry picked from commit 90f04c984e78b9ef791b8fe72f471abaf3bb2fc7)

libeap/src/crypto/tls_openssl.c

index c0a40f9..d155c09 100644 (file)
@@ -767,13 +767,7 @@ void tls_deinit(void *ssl_ctx)
 
        tls_openssl_ref_count--;
        if (tls_openssl_ref_count == 0) {
-#ifndef OPENSSL_NO_ENGINE
-               ENGINE_cleanup();
-#endif /* OPENSSL_NO_ENGINE */
-               CRYPTO_cleanup_all_ex_data();
                ERR_remove_state(0);
-               ERR_free_strings();
-               EVP_cleanup();
                os_free(tls_global);
                tls_global = NULL;
        }