Changeset 70c2d86 in mod_gnutls for src/gnutls_cache.c


Ignore:
Timestamp:
Jan 11, 2013, 12:55:20 AM (9 years ago)
Author:
Daniel Kahn Gillmor <dkg@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, upstream
Children:
3f5c713, ec06980
Parents:
3e94bd3
Message:

Imported Upstream version 0.3.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.c

    r3e94bd3 r70c2d86  
    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.