Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
Signed-off-by: Junjie Gao <[email protected]>
  • Loading branch information
JeyJeyGao committed Sep 14, 2024
1 parent 50f6e6d commit deec55e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion revocation/internal/crl/crl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions revocation/result/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}

0 comments on commit deec55e

Please sign in to comment.