Changeset 0a02378 in mod_gnutls


Ignore:
Timestamp:
Oct 27, 2016, 6:21:05 PM (14 months ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
master, debian, upstream
Children:
ef107fd
Parents:
333bbc7
Message:

Style fixes for OCSP related time differences

  • Consistently use apr_interval_time_t for time differences
  • Rename MGS_GRACE_TIME to MGS_OCSP_GRACE_TIME
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • include/mod_gnutls.h.in

    r333bbc7 r0a02378  
    223223     * period expires. This way mod_gnutls does not staple barely
    224224     * valid responses. */
    225     apr_time_t ocsp_grace_time;
     225    apr_interval_time_t ocsp_grace_time;
    226226    /* If an OCSP request fails wait this long before trying again. */
    227     apr_time_t ocsp_failure_timeout;
     227    apr_interval_time_t ocsp_failure_timeout;
    228228    /* Socket timeout for OCSP requests */
    229229    apr_interval_time_t ocsp_socket_timeout;
  • src/gnutls_config.c

    r333bbc7 r0a02378  
    11271127    sc->ocsp_response_file = NULL;
    11281128    sc->ocsp_mutex = NULL;
    1129     sc->ocsp_grace_time = apr_time_from_sec(MGS_GRACE_TIME);
     1129    sc->ocsp_grace_time = apr_time_from_sec(MGS_OCSP_GRACE_TIME);
    11301130    sc->ocsp_failure_timeout = apr_time_from_sec(MGS_OCSP_FAILURE_TIMEOUT);
    11311131    sc->ocsp_socket_timeout = apr_time_from_sec(MGS_OCSP_SOCKET_TIMEOUT);
     
    11891189    gnutls_srvconf_merge(ocsp_staple, GNUTLS_ENABLED_UNSET);
    11901190    gnutls_srvconf_assign(ocsp_response_file);
    1191     gnutls_srvconf_merge(ocsp_grace_time, apr_time_from_sec(MGS_GRACE_TIME));
     1191    gnutls_srvconf_merge(ocsp_grace_time,
     1192                         apr_time_from_sec(MGS_OCSP_GRACE_TIME));
    11921193    gnutls_srvconf_merge(ocsp_failure_timeout,
    11931194                         apr_time_from_sec(MGS_OCSP_FAILURE_TIMEOUT));
  • src/gnutls_ocsp.h

    r333bbc7 r0a02378  
    2626
    2727/* Default OCSP response grace time in seconds */
    28 #define MGS_GRACE_TIME 60
     28#define MGS_OCSP_GRACE_TIME 60
    2929/* Default OCSP failure timeout in seconds */
    3030#define MGS_OCSP_FAILURE_TIMEOUT 300
Note: See TracChangeset for help on using the changeset viewer.