ocspCheck is made optional

This commit is contained in:
fpeters 2004-09-08 16:23:54 +00:00
parent 47eca42840
commit 1acc82c2da
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}