Skip to content
Snippets Groups Projects
Commit 06567ee5 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add ldap_pvt_tls_destroy

parent 8e721424
No related branches found
No related tags found
No related merge requests found
......@@ -169,6 +169,7 @@ ldap_pvt_str2lower LDAP_P(( char *str ));
/* tls.c */
LDAP_F (int) ldap_pvt_tls_init LDAP_P(( void ));
LDAP_F (void) ldap_pvt_tls_destroy LDAP_P(( void ));
LDAP_F (int) ldap_pvt_tls_connect LDAP_P(( struct ldap *ld,
Sockbuf *sb, void *ctx_arg ));
LDAP_F (int) ldap_pvt_tls_accept LDAP_P(( Sockbuf *sb, void *ctx_arg ));
......
......@@ -97,6 +97,17 @@ static void tls_init_threads( void )
}
#endif /* LDAP_R_COMPILE */
/*
* Tear down the TLS subsystem. Should only be called once.
*/
void
ldap_pvt_tls_destroy( void )
{
SSL_CTX_free(tls_def_ctx);
EVP_cleanup();
ERR_free_strings();
}
/*
* Initialize TLS subsystem. Should be called only once.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment