From: Nick Porter Date: Wed, 22 Jan 2025 12:30:10 +0000 (+0000) Subject: Report OpenSSL errors at each stage of OCSP failure X-Git-Tag: release_3_2_7~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b219adf07f756d776308d57b0b8118c51215585;p=thirdparty%2Ffreeradius-server.git Report OpenSSL errors at each stage of OCSP failure --- diff --git a/src/main/tls.c b/src/main/tls.c index 2c67a44325..6742a5ea65 100644 --- a/src/main/tls.c +++ b/src/main/tls.c @@ -2821,7 +2821,7 @@ static ocsp_status_t ocsp_check(REQUEST *request, X509_STORE *store, X509 *issue } bresp = OCSP_response_get1_basic(resp); if (!bresp) { - RDEBUG("ocsp: Failed parsing response"); + tls_error_log(request, "ocsp: Failed parsing response"); goto ocsp_end; } @@ -2830,13 +2830,13 @@ static ocsp_status_t ocsp_check(REQUEST *request, X509_STORE *store, X509 *issue goto ocsp_end; } if (OCSP_basic_verify(bresp, untrusted, store, 0)!=1){ - REDEBUG("ocsp: Couldn't verify OCSP basic response"); + tls_error_log(request, "ocsp: Couldn't verify OCSP basic response"); goto ocsp_end; } /* Verify OCSP cert status */ if (!OCSP_resp_find_status(bresp, certid, &status, &reason, &rev, &thisupd, &nextupd)) { - REDEBUG("ocsp: No Status found"); + tls_error_log(request, "ocsp: No Status found"); goto ocsp_end; }