]> granicus.if.org Git - apache/commitdiff
Fix the default OCSP responder timeout for client cert
authorKaspar Brand <kbrand@apache.org>
Sun, 28 Aug 2011 16:34:50 +0000 (16:34 +0000)
committerKaspar Brand <kbrand@apache.org>
Sun, 28 Aug 2011 16:34:50 +0000 (16:34 +0000)
validation - 10 µsec is a tad too aggressive.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1162552 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_ocsp.c

index d7f33c9587e6709c48cbc07bcab30e0872d15e57..ff5ee35c3a9e2c29db871a972578fb19e605188d 100644 (file)
@@ -142,7 +142,7 @@ static int verify_ocsp_status(X509 *cert, X509_STORE_CTX *ctx, conn_rec *c,
     request = create_request(ctx, cert, &certID, s, pool);
     if (request) {
         apr_interval_time_t to = sc->server->ocsp_responder_timeout == UNSET ?
-                                 DEFAULT_OCSP_TIMEOUT :
+                                 apr_time_from_sec(DEFAULT_OCSP_TIMEOUT) :
                                  sc->server->ocsp_responder_timeout;
         response = modssl_dispatch_ocsp_request(ruri, to, request, c, pool);
     }