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 Aug 8, 2024
1 parent 2c677c1 commit 6c0db0a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions revocation/ocsp/error.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package ocsp

import "github.com/notaryproject/notation-core-go/revocation/internal/ocsp"

type (
// RevokedError is returned when the certificate's status for OCSP is
// ocsp.Revoked
RevokedError = ocsp.RevokedError

// UnknownStatusError is returned when the certificate's status for OCSP is
// ocsp.Unknown
UnknownStatusError = ocsp.UnknownStatusError

// GenericError is returned when there is an error during the OCSP revocation
// check, not necessarily a revocation
GenericError = ocsp.GenericError

// NoServerError is returned when the OCSPServer is not specified.
NoServerError = ocsp.NoServerError

// TimeoutError is returned when the connection attempt to an OCSP URL exceeds
// the specified threshold
TimeoutError = ocsp.TimeoutError
)

0 comments on commit 6c0db0a

Please sign in to comment.