Changeset babdb29 in mod_gnutls for src/gnutls_config.c


Ignore:
Timestamp:
May 16, 2018, 2:12:08 AM (2 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master, proxy-ticket
Children:
92b5f4d
Parents:
d036f96
Message:

Initialize and clean up the OCSP cache, following session cache patterns

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_config.c

    rd036f96 rbabdb29  
    625625    else if (!strcasecmp(parms->directive->directive, "GnuTLSOCSPCache"))
    626626    {
    627         // TODO
    628         return NULL;
     627        if (enable == GNUTLS_ENABLED_FALSE)
     628        {
     629            /* TODO: Should this return an error like "use
     630             * GnuTLSOCSPStapling off if you want to disable OCSP
     631             * stapling"? */
     632            sc->ocsp_cache_enable = GNUTLS_ENABLED_FALSE;
     633            return NULL;
     634        }
     635        sc->ocsp_cache_enable = GNUTLS_ENABLED_TRUE;
     636        cache = &sc->ocsp_cache;
    629637    }
    630638    else
     
    899907    sc->ocsp_response_file = NULL;
    900908    sc->ocsp_mutex = NULL;
     909    sc->ocsp_cache_enable = GNUTLS_ENABLED_UNSET;
     910    sc->ocsp_cache = NULL;
    901911    sc->ocsp_cache_time = MGS_TIMEOUT_UNSET;
    902912    sc->ocsp_failure_timeout = MGS_TIMEOUT_UNSET;
Note: See TracChangeset for help on using the changeset viewer.