From deec55e0b4dffce9763d7525814c2932f63ff142 Mon Sep 17 00:00:00 2001 From: Junjie Gao Date: Sat, 14 Sep 2024 02:42:42 +0000 Subject: [PATCH] fix: update Signed-off-by: Junjie Gao --- revocation/internal/crl/crl.go | 2 +- revocation/result/results.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/revocation/internal/crl/crl.go b/revocation/internal/crl/crl.go index 0de7dad..19fdafe 100644 --- a/revocation/internal/crl/crl.go +++ b/revocation/internal/crl/crl.go @@ -92,7 +92,7 @@ func CertCheckStatus(ctx context.Context, cert, issuer *x509.Certificate, opts C lastErr error crlURL string ) - for _, crlURL := range cert.CRLDistributionPoints { + for _, crlURL = range cert.CRLDistributionPoints { baseCRL, err := download(ctx, crlURL, opts.HTTPClient) if err != nil { lastErr = fmt.Errorf("failed to download CRL from %s: %w", crlURL, err) diff --git a/revocation/result/results.go b/revocation/result/results.go index ff3d243..a58e5f7 100644 --- a/revocation/result/results.go +++ b/revocation/result/results.go @@ -77,7 +77,7 @@ type ServerResult struct { Error error // RevocationMethod is the method used to check the revocation status of the - // certificate, including Unknown(0), MethodOCSP(1), MethodCRL(2) + // certificate, including MethodUnknown, MethodOCSP, MethodCRL RevocationMethod revocation.Method } @@ -119,7 +119,7 @@ type CertRevocationResult struct { ServerResults []*ServerResult // RevocationMethod is the method used to check the revocation status of the - // certificate, including Unknown(0), MethodOCSP(1), MethodCRL(2) and - // MethodOCSPFallbackCRL(3) + // certificate, including MethodUnknown, MethodOCSP, MethodCRL and + // MethodOCSPFallbackCRL RevocationMethod revocation.Method }