/** * gnutls_certificate_free_credentials: * @sc: is a #gnutls_certificate_credentials_t structure. * * This structure is complex enough to manipulate directly thus this * helper function is provided in order to free (deallocate) it. * * This function does not free any temporary parameters associated * with this structure (ie RSA and DH parameters are not freed by this * function). **/ void gnutls_certificate_free_credentials (gnutls_certificate_credentials_t sc) { gnutls_x509_trust_list_deinit(sc->tlist, 1); gnutls_certificate_free_keys (sc); gnutls_certificate_free_ca_names (sc); #ifdef ENABLE_OPENPGP gnutls_openpgp_keyring_deinit (sc->keyring); #endif gnutls_free (sc); }
/** * gnutls_certificate_free_credentials: * @sc: is a #gnutls_certificate_credentials_t structure. * * This structure is complex enough to manipulate directly thus this * helper function is provided in order to free (deallocate) it. * * This function does not free any temporary parameters associated * with this structure (ie RSA and DH parameters are not freed by this * function). **/ void gnutls_certificate_free_credentials (gnutls_certificate_credentials_t sc) { gnutls_x509_trust_list_deinit(sc->tlist, 1); gnutls_certificate_free_keys (sc); gnutls_certificate_free_ca_names (sc); gnutls_free(sc->ocsp_response_file); memset(sc->pin_tmp, 0, sizeof(sc->pin_tmp)); #ifdef ENABLE_OPENPGP gnutls_openpgp_keyring_deinit (sc->keyring); #endif gnutls_free (sc); }
/* Release SSL and free resources Will be automatically executed by mysql_server_end() function SYNOPSIS my_gnutls_end() void RETURN VALUES void */ void ma_ssl_end() { pthread_mutex_lock(&LOCK_gnutls_config); if (ma_ssl_initialized) { gnutls_certificate_free_keys(GNUTLS_xcred); gnutls_certificate_free_cas(GNUTLS_xcred); gnutls_certificate_free_crls(GNUTLS_xcred); gnutls_certificate_free_ca_names(GNUTLS_xcred); gnutls_certificate_free_credentials(GNUTLS_xcred); gnutls_global_deinit(); ma_ssl_initialized= FALSE; } pthread_mutex_unlock(&LOCK_gnutls_config); pthread_mutex_destroy(&LOCK_gnutls_config); return; }
/** * gnutls_certificate_free_credentials - Used to free an allocated gnutls_certificate_credentials_t structure * @sc: is an #gnutls_certificate_credentials_t structure. * * This structure is complex enough to manipulate directly thus * this helper function is provided in order to free (deallocate) it. * * This function does not free any temporary parameters associated * with this structure (ie RSA and DH parameters are not freed by * this function). **/ void gnutls_certificate_free_credentials (gnutls_certificate_credentials_t sc) { gnutls_certificate_free_keys (sc); gnutls_certificate_free_cas (sc); gnutls_certificate_free_ca_names (sc); #ifdef ENABLE_PKI gnutls_certificate_free_crls (sc); #endif #ifndef KEYRING_HACK if (_E_gnutls_openpgp_keyring_deinit) _E_gnutls_openpgp_keyring_deinit( sc->keyring); #else _gnutls_free_datum( &sc->keyring); #endif gnutls_free (sc); }
void certificate_credentials::free_ca_names () { gnutls_certificate_free_ca_names (cred); }