mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-17 04:26:59 +00:00
BUG/MINOR: ssl: OCSP_single_get0_status can return -1
Commit 872085ce
"BUG/MINOR: ssl: ocsp response with 'revoked' status is correct"
introduce a regression. OCSP_single_get0_status can return -1 and haproxy must
generate an error in this case.
Thanks to Sander Hoentjen who have spotted the regression.
This patch should be backported in 1.7, 1.6 and 1.5 if the patch above is
backported.
This commit is contained in:
parent
019f9b10ef
commit
ef60705075
@ -622,7 +622,7 @@ static int ssl_sock_load_ocsp_response(struct chunk *ocsp_response, struct certi
|
||||
id = (OCSP_CERTID*)OCSP_SINGLERESP_get0_id(sr);
|
||||
|
||||
rc = OCSP_single_get0_status(sr, &reason, &revtime, &thisupd, &nextupd);
|
||||
if (rc == V_OCSP_CERTSTATUS_UNKNOWN) {
|
||||
if (rc != V_OCSP_CERTSTATUS_GOOD && rc != V_OCSP_CERTSTATUS_REVOKED) {
|
||||
memprintf(err, "OCSP single response: certificate status is unknown");
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user