From 1acc82c2da31171fd1234bf4de96eee170404091 Mon Sep 17 00:00:00 2001 From: fpeters <> Date: Wed, 8 Sep 2004 16:23:54 +0000 Subject: [PATCH] ocspCheck is made optional --- src/auth.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/auth.c b/src/auth.c index 5a6c351..31167aa 100644 --- a/src/auth.c +++ b/src/auth.c @@ -238,8 +238,9 @@ char* certificate_auth() return NULL; } - if (strcmp(get_config_string("//idpc:ocspCheck"), "true") == 0 && - ocsp_check(getenv("SSL_CLIENT_CERT")) != 0) { + if (get_config_string("//idpc:ocspCheck") && + strcmp(get_config_string("//idpc:ocspCheck"), "true") == 0 && + ocsp_check(getenv("SSL_CLIENT_CERT")) != 0) { fprintf(stderr, "ocsp check failed\n"); return NULL; }