- Fixes in openpgp signature verification.
- certtool has now support for more X.520 DN attribute types.
- Better handling of EOF in gnutls_record_recv().
+- _gnutls_deinit() is no longer used. Sessions are not
+ automatically removed any more, on abnormal termination.
Version 1.1.9 (14/04/2004)
- Added support for authority key identifier and the extended key usage
int gnutls_init(gnutls_session * session, gnutls_connection_end con_end);
void gnutls_deinit(gnutls_session session);
-void _gnutls_deinit(gnutls_session session);
+#define _gnutls_deinit(x) gnutls_deinit(x)
+
int gnutls_bye( gnutls_session session, gnutls_close_request how);
int gnutls_handshake( gnutls_session session);
/**
- * _gnutls_deinit - This function clears all buffers associated with the &session
+ * gnutls_deinit - This function clears all buffers associated with the &session
* @session: is a &gnutls_session structure.
*
* This function clears all buffers associated with the &session.
- * The difference with gnutls_deinit() is that this function will not
- * interfere with the session database.
+ * This function will also remove session data from the session database
+ * if the session was terminated abnormally.
*
**/
-void _gnutls_deinit(gnutls_session session)
+void gnutls_deinit(gnutls_session session)
{
if (session==NULL) return;
gnutls_free(session);
}
-/**
- * gnutls_deinit - This function clears all buffers associated with the &session
- * @session: is a &gnutls_session structure.
- *
- * This function clears all buffers associated with the &session.
- * This function will also remove session data from the session database
- * if the session was terminated abnormally.
- *
- **/
-void gnutls_deinit(gnutls_session session)
-{
-
- if (session==NULL) return;
-
- /* If the session was terminated abnormally then remove
- * the session data.
- */
- if (_gnutls_session_is_resumable(session)==RESUME_FALSE) {
- gnutls_db_remove_session( session);
- }
-
- _gnutls_deinit( session);
-}
-
-
int _gnutls_dh_get_prime_bits( gnutls_session session)
{
return session->internals.dh_prime_bits;