Changeset 764fef3 in mod_gnutls for src/gnutls_cache.c


Ignore:
Timestamp:
May 31, 2020, 6:24:41 AM (13 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master
Children:
e151b6f
Parents:
7e29705
git-author:
Fiona Klute <fiona.klute@…> (05/31/20 06:17:51)
git-committer:
Fiona Klute <fiona.klute@…> (05/31/20 06:24:41)
Message:

Load cached proxy TLS sessions from cache

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.c

    r7e29705 r764fef3  
    33 *  Copyright 2008 Nikos Mavrogiannopoulos
    44 *  Copyright 2011 Dash Shendy
    5  *  Copyright 2015-2018 Fiona Klute
     5 *  Copyright 2015-2020 Fiona Klute
    66 *
    77 *  Licensed under the Apache License, Version 2.0 (the "License");
     
    169169
    170170
    171 /** 8K is the maximum size accepted when receiving OCSP responses,
    172  * sessions cache entries should be much smaller. The buffer is
    173  * reallocated to actual size after fetching, so memory waste is
    174  * minimal and temporary. */
    175 #define SOCACHE_FETCH_BUF_SIZE (8 * 1024)
    176 
    177171apr_status_t mgs_cache_fetch(mgs_cache_t cache, server_rec *server,
    178172                             gnutls_datum_t key, gnutls_datum_t *output,
     
    240234        return data;
    241235
    242     data.data = gnutls_malloc(SOCACHE_FETCH_BUF_SIZE);
     236    data.data = gnutls_malloc(MGS_SESSION_FETCH_BUF_SIZE);
    243237    if (data.data == NULL)
    244238        return data;
    245     data.size = SOCACHE_FETCH_BUF_SIZE;
     239    data.size = MGS_SESSION_FETCH_BUF_SIZE;
    246240
    247241    apr_status_t rv = mgs_cache_fetch(ctxt->sc->cache, ctxt->c->base_server,
Note: See TracChangeset for help on using the changeset viewer.