mirror of
https://github.com/ipxe/ipxe
synced 2025-12-14 07:50:43 +03:00
[ocsp] Centralise test for whether or not an OCSP check is required
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -488,8 +488,7 @@ static void validator_step ( struct validator *validator ) {
|
||||
/* The issuer is valid, but this certificate is not
|
||||
* yet valid. If OCSP is applicable, start it.
|
||||
*/
|
||||
if ( cert->extensions.auth_info.ocsp.uri.len &&
|
||||
( ! cert->extensions.auth_info.ocsp.good ) ) {
|
||||
if ( ocsp_required ( cert ) ) {
|
||||
/* Start OCSP */
|
||||
if ( ( rc = validator_start_ocsp ( validator, cert,
|
||||
issuer ) ) != 0 ) {
|
||||
|
||||
Reference in New Issue
Block a user