Ejemplo n.º 1
0
/**
 * gnutls_db_remove_session:
 * @session: is a #gnutls_session_t structure.
 *
 * This function will remove the current session data from the
 * session database.  This will prevent future handshakes reusing
 * these session data.  This function should be called if a session
 * was terminated abnormally, and before gnutls_deinit() is called.
 *
 * Normally gnutls_deinit() will remove abnormally terminated
 * sessions.
 **/
void
gnutls_db_remove_session (gnutls_session_t session)
{
  _gnutls_db_remove_session (session,
                             session->security_parameters.session_id,
                             session->security_parameters.session_id_size);
}
Ejemplo n.º 2
0
/**
  * gnutls_db_remove_session - This function will remove the current session data from the database
  * @session: is a #gnutls_session_t structure.
  *
  * This function will remove the current session data from the session
  * database. This will prevent future handshakes reusing these session
  * data. This function should be called if a session was terminated
  * abnormally, and before gnutls_deinit() is called.
  *
  * Normally gnutls_deinit() will remove abnormally terminated sessions.
  *
  **/
void
gnutls_db_remove_session (gnutls_session_t session)
{
  /* if the session has failed abnormally it has 
   * to be removed from the db 
   */
  _gnutls_db_remove_session (session,
			     session->security_parameters.session_id,
			     session->security_parameters.session_id_size);
}