Changeset de1ceab in mod_gnutls for src/gnutls_cache.h


Ignore:
Timestamp:
Apr 23, 2018, 4:39:28 PM (3 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, debian/master, master, proxy-ticket
Children:
14a6f41
Parents:
0470e44
Message:

Replace internal cache implementation with mod_socache

Massively simplifies mod_gnutls code, and using mod_socache_shmcb will
allow for extremely simple cache setup (no configuration needed as
long as the module is available, not implemented yet).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.h

    r0470e44 rde1ceab  
    2828#include "mod_gnutls.h"
    2929#include <httpd.h>
     30#include <ap_socache.h>
    3031
    3132/** Name of the mod_gnutls cache access mutex, for use with Apache's
     
    3839 * parsed.
    3940 *
    40  * @param p configuration memory pool
     41 * @param pconf configuration memory pool
     42 * @param ptemp temporary memory pool
    4143 * @param s default server of the Apache configuration, head of the
    4244 * server list
    4345 * @param sc mod_gnutls data associated with `s`
    4446 */
    45 int mgs_cache_post_config(apr_pool_t *p, server_rec *s, mgs_srvconf_rec *sc);
     47int mgs_cache_post_config(apr_pool_t *pconf, apr_pool_t *ptemp,
     48                          server_rec *s, mgs_srvconf_rec *sc);
    4649
    4750/**
     
    113116 */
    114117struct mgs_cache {
     118    /** Socache provider to use for this cache */
     119    const ap_socache_provider_t *prov;
     120    /** The actual socache instance */
     121    ap_socache_instance_t *socache;
    115122    /** Store function for this cache */
    116123    cache_store_func store;
Note: See TracChangeset for help on using the changeset viewer.