Changeset 0e3f8c6 in mod_gnutls


Ignore:
Timestamp:
Apr 19, 2018, 2:11:52 PM (3 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, debian/master, master, proxy-ticket
Children:
506e64a
Parents:
5c62a6a
Message:

Create module-wide singleton watchdog during post_config

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • include/mod_gnutls.h.in

    r5c62a6a r0e3f8c6  
    5656#define MOD_GNUTLS_DEBUG @OOO_MAINTAIN@
    5757
     58/** Name of the module-wide singleton watchdog */
     59#define MGS_SINGLETON_WATCHDOG "_mod_gnutls_singleton_"
     60
     61
    5862/* mod_gnutls Cache Types */
    5963typedef enum {
     
    96100#define MAX_CERT_SAN 5
    97101
    98 /* Server Configuration Record */
     102/** Server Configuration Record */
    99103typedef struct {
    100104    /* --- Configuration values --- */
     
    226230    /* Socket timeout for OCSP requests */
    227231    apr_interval_time_t ocsp_socket_timeout;
     232
     233    /** This module's singleton watchdog, used for async OCSP cache
     234     * updates. */
     235    struct mgs_watchdog *singleton_wd;
    228236} mgs_srvconf_rec;
    229237
  • src/gnutls_config.c

    r5c62a6a r0e3f8c6  
    11121112    sc->ocsp_socket_timeout = MGS_TIMEOUT_UNSET;
    11131113
     1114    sc->singleton_wd = NULL;
     1115
    11141116/* this relies on GnuTLS never changing the gnutls_certificate_request_t enum to define -1 */
    11151117    sc->client_verify_mode = -1;
  • src/gnutls_hooks.c

    r5c62a6a r0e3f8c6  
    2323#include "gnutls_ocsp.h"
    2424#include "gnutls_util.h"
     25#include "gnutls_watchdog.h"
     26
    2527#include "http_vhost.h"
    2628#include "ap_mpm.h"
     
    652654    }
    653655
     656    sc_base->singleton_wd =
     657        mgs_new_singleton_watchdog(base_server, MGS_SINGLETON_WATCHDOG, pconf);
     658
    654659    for (s = base_server; s; s = s->next)
    655660    {
     
    659664        sc->cache_timeout = sc_base->cache_timeout;
    660665        sc->cache = sc_base->cache;
     666
     667        sc->singleton_wd = sc_base->singleton_wd;
    661668
    662669        rv = mgs_load_files(pconf, ptemp, s);
Note: See TracChangeset for help on using the changeset viewer.