From: Nikos Mavrogiannopoulos Date: Mon, 14 May 2001 07:05:58 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: gnutls-0_1_2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b530091f8591014f3f111dc3d2139a95d7c1b13d;p=thirdparty%2Fgnutls.git *** empty log message *** --- diff --git a/NEWS b/NEWS index 2cf0e6c0cf..c45bf8db10 100644 --- 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 0af357a3f6..79ff4f4c81 100644 --- 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. diff --git a/lib/gnutls_db.c b/lib/gnutls_db.c index 5b45b69606..b6a0388f0e 100644 --- a/lib/gnutls_db.c +++ b/lib/gnutls_db.c @@ -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); }