]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
*** empty log message ***
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 14 May 2001 07:05:58 +0000 (07:05 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 14 May 2001 07:05:58 +0000 (07:05 +0000)
NEWS
doc/API
lib/gnutls_db.c

diff --git a/NEWS b/NEWS
index 2cf0e6c0cf5e56100547691cccb08df2f95b10ef..c45bf8db10f0542fbe6d1363e53f6c351dc52478 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-Version 0.1.1
+Version 0.1.1 (13/05/2001)
 - Added compatibility with Stanford's libsrp library
 
 Version 0.1.0 (09/05/2001)
diff --git a/doc/API b/doc/API
index 0af357a3f675b59d86232d6ae49322f560adeba9..79ff4f4c813c61bcd1947fbf326d10fa2d88710c 100644 (file)
--- a/doc/API
+++ b/doc/API
@@ -154,5 +154,5 @@ int gnutls_set_db_name( GNUTLS_STATE state, char* filename);
         the sessions to be resumed.
 
 int gnutls_clean_db( GNUTLS_STATE state);
-       Deletes all the records in the db. This db may become huge
+       Deletes all expired records in the db. This db may become huge
        if this is not called.
index 5b45b6960665c8b17f5249aa827b2da8ac20e9dd..b6a0388f0eee1b0d717fc049b0726b1d1741a4ad 100644 (file)
@@ -58,7 +58,7 @@ time_t timestamp;
 
        while( key.dptr != NULL) {
 
-               if ( ((SecurityParameters*)(key.dptr))->timestamp > timestamp || ((SecurityParameters*)(key.dptr))->timestamp == 0) {
+               if ( timestamp - ((SecurityParameters*)(key.dptr))->timestamp <= state->gnutls_internals.expire_time || ((SecurityParameters*)(key.dptr))->timestamp == 0) {
                    /* delete expired entry */
                    gdbm_delete( dbf, key);
                }