Skip to content

Commit 1b219ad

Browse files
committed
Report OpenSSL errors at each stage of OCSP failure
1 parent 17caeac commit 1b219ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/tls.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2821,7 +2821,7 @@ static ocsp_status_t ocsp_check(REQUEST *request, X509_STORE *store, X509 *issue
28212821
}
28222822
bresp = OCSP_response_get1_basic(resp);
28232823
if (!bresp) {
2824-
RDEBUG("ocsp: Failed parsing response");
2824+
tls_error_log(request, "ocsp: Failed parsing response");
28252825
goto ocsp_end;
28262826
}
28272827

@@ -2830,13 +2830,13 @@ static ocsp_status_t ocsp_check(REQUEST *request, X509_STORE *store, X509 *issue
28302830
goto ocsp_end;
28312831
}
28322832
if (OCSP_basic_verify(bresp, untrusted, store, 0)!=1){
2833-
REDEBUG("ocsp: Couldn't verify OCSP basic response");
2833+
tls_error_log(request, "ocsp: Couldn't verify OCSP basic response");
28342834
goto ocsp_end;
28352835
}
28362836

28372837
/* Verify OCSP cert status */
28382838
if (!OCSP_resp_find_status(bresp, certid, &status, &reason, &rev, &thisupd, &nextupd)) {
2839-
REDEBUG("ocsp: No Status found");
2839+
tls_error_log(request, "ocsp: No Status found");
28402840
goto ocsp_end;
28412841
}
28422842

0 commit comments

Comments
 (0)