diff options
author | Michael Brown <mcb30@ipxe.org> | 2018-03-18 22:21:49 +0200 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2018-03-18 22:25:01 +0200 |
commit | a0021a30dd8db832714e327bbbc65d3589f528ab (patch) | |
tree | facbeee3dc57ac4d3cd314236e087e285ce14289 /src/net/validator.c | |
parent | ae930644962a886d3845e5d8836c5cf136c82df0 (diff) | |
download | ipxe-a0021a30dd8db832714e327bbbc65d3589f528ab.tar.gz |
[ocsp] Centralise test for whether or not an OCSP check is required
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/validator.c')
-rw-r--r-- | src/net/validator.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/validator.c b/src/net/validator.c index 68abe1b55..40f778c7d 100644 --- a/src/net/validator.c +++ b/src/net/validator.c @@ -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 ) { |