NAME
SSLCTXfree - free an allocated SSLCTX object
SYNOPSIS
#include
void SSLCTXfree(SSLCTX *ctx);DESCRIPTION
SSLCTXfree() decrements the reference count of ccttxx, and removes the SSLCTX object pointed to by ccttxx and frees up the allocated memory if the the reference count has reached 0. It also calls the free()ing procedures for indirectly affected items, if applicable: the session cache, the list of ciphers, the list of Client CAs, the certificates and keys. WWAARRNNIINNGGSSIf a session-remove callback is set (SSLCTXsesssetremovecb()),
this callback will be called for each session being freed from ccttxx's session cache. This implies, that all corresponding sessions from an external session cache are removed as well. If this is not desired, the user should explicitly unset the callback by calling SSLCTXsesssetremovecb(ccttxx, NULL) prior to calling SSLCTXfree().RETURN VALUES
SSLCTXfree() does not provide diagnostic information.SEE ALSO
SSLCTXnew(3), ssl(3), SSLCTXsesssetgetcb(3)0.9.7l 2003-03-27 SSLCTXfree(3)