Changeset 2246a84 in mod_gnutls for src/gnutls_config.c


Ignore:
Timestamp:
Apr 21, 2018, 3:51:51 PM (2 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master, proxy-ticket
Children:
7921dc7
Parents:
fa6d0bb
Message:

Make automatic OCSP cache updates and fuzz time configurable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_config.c

    rfa6d0bb r2246a84  
    33 *  Copyright 2008, 2014 Nikos Mavrogiannopoulos
    44 *  Copyright 2011 Dash Shendy
    5  *  Copyright 2015-2016 Fiona Klute
     5 *  Copyright 2015-2018 Fiona Klute
    66 *
    77 *  Licensed under the Apache License, Version 2.0 (the "License");
     
    851851                                "GnuTLSOCSPFailureTimeout"))
    852852        sc->ocsp_failure_timeout = apr_time_from_sec(argint);
     853    else if (!apr_strnatcasecmp(parms->directive->directive,
     854                                "GnuTLSOCSPFuzzTime"))
     855        sc->ocsp_fuzz_time = apr_time_from_sec(argint);
    853856    else if (!apr_strnatcasecmp(parms->directive->directive,
    854857                                "GnuTLSOCSPSocketTimeout"))
     
    11051108
    11061109    sc->ocsp_staple = GNUTLS_ENABLED_UNSET;
     1110    sc->ocsp_auto_refresh = GNUTLS_ENABLED_UNSET;
    11071111    sc->ocsp_check_nonce = GNUTLS_ENABLED_UNSET;
    11081112    sc->ocsp_response_file = NULL;
     
    11101114    sc->ocsp_cache_time = MGS_TIMEOUT_UNSET;
    11111115    sc->ocsp_failure_timeout = MGS_TIMEOUT_UNSET;
     1116    sc->ocsp_fuzz_time = MGS_TIMEOUT_UNSET;
    11121117    sc->ocsp_socket_timeout = MGS_TIMEOUT_UNSET;
    11131118
     
    11711176
    11721177    gnutls_srvconf_merge(ocsp_staple, GNUTLS_ENABLED_UNSET);
     1178    gnutls_srvconf_merge(ocsp_auto_refresh, GNUTLS_ENABLED_UNSET);
    11731179    gnutls_srvconf_merge(ocsp_check_nonce, GNUTLS_ENABLED_UNSET);
    11741180    gnutls_srvconf_assign(ocsp_response_file);
    11751181    gnutls_srvconf_merge(ocsp_cache_time, MGS_TIMEOUT_UNSET);
    11761182    gnutls_srvconf_merge(ocsp_failure_timeout, MGS_TIMEOUT_UNSET);
     1183    gnutls_srvconf_merge(ocsp_fuzz_time, MGS_TIMEOUT_UNSET);
    11771184    gnutls_srvconf_merge(ocsp_socket_timeout, MGS_TIMEOUT_UNSET);
    11781185
Note: See TracChangeset for help on using the changeset viewer.