X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Ftls.c;h=caa7e62eda1d626be93db54ed582fbe957c896e5;hb=080871565c927c04b9e4a762c0f43836db266425;hp=93ba27f10bc6a37a08546b6e9df7e89d72f0d03a;hpb=8e4c9b3aa2034f6083a7b17a748491ee1a26d32a;p=freeradius.git diff --git a/src/main/tls.c b/src/main/tls.c index 93ba27f..caa7e62 100644 --- a/src/main/tls.c +++ b/src/main/tls.c @@ -2436,26 +2436,6 @@ static int set_ecdh_curve(SSL_CTX *ctx, char const *ecdh_curve, bool disable_sin #endif #endif -/* - * DIE OPENSSL DIE DIE DIE - * - * What a palaver, just to free some data attached the - * session. We need to do this because the "remove" callback - * is called when refcount > 0 sometimes, if another thread - * is using the session - */ -static void sess_free_certs(UNUSED void *parent, void *data_ptr, - UNUSED CRYPTO_EX_DATA *ad, UNUSED int idx, - UNUSED long argl, UNUSED void *argp) -{ - VALUE_PAIR **certs = data_ptr; - if (!certs) return; - - DEBUG2(LOG_PREFIX ": Freeing cached session Certificates"); - - fr_pair_list_free(certs); -} - /** Add all the default ciphers and message digests reate our context. * * This should be called exactly once from main, before reading the main config @@ -2471,7 +2451,7 @@ void tls_global_init(void) /* * Initialize the index for the certificates. */ - fr_tls_ex_index_certs = SSL_SESSION_get_ex_new_index(0, NULL, NULL, NULL, sess_free_certs); + fr_tls_ex_index_certs = SSL_SESSION_get_ex_new_index(0, NULL, NULL, NULL, NULL); } #ifdef ENABLE_OPENSSL_VERSION_CHECK