/* this function deinitializes all the internal parameters stored * in a session struct. */ inline static void deinit_internal_params (gnutls_session_t session) { if (session->internals.params.free_dh_params) gnutls_dh_params_deinit (session->internals.params.dh_params); if (session->internals.params.free_rsa_params) gnutls_rsa_params_deinit (session->internals.params.rsa_params); memset (&session->internals.params, 0, sizeof (session->internals.params)); }
/* this function deinitializes all the internal parameters stored * in a session struct. */ inline static void deinit_internal_params (gnutls_session_t session) { if (session->internals.params.free_dh_params) gnutls_dh_params_deinit (session->internals.params.dh_params); if (session->internals.params.free_rsa_params) gnutls_rsa_params_deinit (session->internals.params.rsa_params); _gnutls_handshake_hash_buffers_clear (session); memset (&session->internals.params, 0, sizeof (session->internals.params)); }
/* this function deinitializes all the internal parameters stored * in a session struct. */ inline static void deinit_internal_params (gnutls_session_t session) { #if defined(ENABLE_DHE) || defined(ENABLE_ANON) if (session->internals.params.free_dh_params) gnutls_dh_params_deinit (session->internals.params.dh_params); #endif if (session->internals.params.free_rsa_params) gnutls_rsa_params_deinit (session->internals.params.rsa_params); _gnutls_handshake_hash_buffers_clear (session); memset (&session->internals.params, 0, sizeof (session->internals.params)); }
rsa_params::~rsa_params () { gnutls_rsa_params_deinit (params); }