summaryrefslogtreecommitdiff
path: root/lib/gnutls_db.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-07-10 12:07:00 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-07-10 12:07:00 +0000
commit93dc00ccd160ef7f1864113ce00a9633ee2b1ee7 (patch)
treeb1ded0308345c9d9e45c367653728ead3a75a07b /lib/gnutls_db.c
parent99e20f63fec3ce65ab5b1887a021e4d0ed9b22c8 (diff)
downloadgnutls-93dc00ccd160ef7f1864113ce00a9633ee2b1ee7.tar.gz
Now gnutls_deinit() removes abnormally terminated sessions. Added the _gnutls_deinit() function which has the behaviour of the older gnutls_deinit().
Diffstat (limited to 'lib/gnutls_db.c')
-rw-r--r--lib/gnutls_db.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gnutls_db.c b/lib/gnutls_db.c
index f3ef5f31c3..fd420595b5 100644
--- a/lib/gnutls_db.c
+++ b/lib/gnutls_db.c
@@ -317,13 +317,15 @@ int ret = 0;
}
/**
- * gnutls_db_remove_session - This function will remove the current session data from the db
+ * gnutls_db_remove_session - This function will remove the current session data from the database
* @state: is a &GNUTLS_STATE 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
- * abnormaly.
+ * abnormaly, and before gnutls_deinit() is called.
+ *
+ * Normally gnutls_deinit() will remove abnormally terminated sessions.
*
**/
void gnutls_db_remove_session(GNUTLS_STATE state) {