Changeset 7bebb42 in mod_gnutls for src/gnutls_cache.c


Ignore:
Timestamp:
Nov 28, 2007, 1:29:21 PM (12 years ago)
Author:
Nokis Mavrogiannopoulos <nmav@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
3e6bc31
Parents:
8e33f2d
git-author:
Nikos Mavrogiannopoulos <nmav@…> (11/28/07 13:29:21)
git-committer:
Nokis Mavrogiannopoulos <nmav@…> (11/28/07 13:29:21)
Message:

upgraded to 0.4.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.c

    r8e33f2d r7bebb42  
    3939#define STR_SESSION_LEN (GNUTLS_SESSION_ID_STRING_LEN + MC_TAG_LEN)
    4040
     41#if 0
    4142static char *gnutls_session_id2sz(unsigned char *id, int idlen,
    4243                               char *str, int strsize)
     
    5152    }
    5253    *cp = '\0';
     54    return str;
     55}
     56#endif
     57
     58#define CTIME "%b %d %k:%M:%S %Y %Z"
     59char *mgs_time2sz(time_t in_time, char *str, int strsize)
     60{
     61    apr_time_exp_t vtm;
     62    apr_size_t ret_size;
     63    apr_time_t t;
     64   
     65 
     66    apr_time_ansi_put (&t, in_time);
     67    apr_time_exp_gmt (&vtm, t);
     68    apr_strftime(str, &ret_size, strsize-1, CTIME, &vtm);
     69
    5370    return str;
    5471}
     
    350367    apr_status_t rv;
    351368
    352     dbmkey.dptr  = key.data;
     369    dbmkey.dptr  = (void*)key.data;
    353370    dbmkey.dsize = key.size;
    354 
    355     dbm_cache_expire(ctxt);
    356371
    357372    rv = apr_dbm_open(&dbm, ctxt->sc->cache_config,
     
    413428           data.data, data.size);
    414429
     430    /* we expire dbm only on every store
     431     */
    415432    dbm_cache_expire(ctxt);
    416433
     
    455472    dbmkey.dsize = key.size;
    456473
    457     dbm_cache_expire(ctxt);
    458    
    459474    rv = apr_dbm_open(&dbm, ctxt->sc->cache_config,
    460475                      APR_DBM_RWCREATE, SSL_DBM_FILE_MODE, ctxt->c->pool);
Note: See TracChangeset for help on using the changeset viewer.