From 6c0db0a49cf7585dd7720cf4217ac4df3b65a4df Mon Sep 17 00:00:00 2001 From: Junjie Gao Date: Thu, 8 Aug 2024 03:20:39 +0000 Subject: [PATCH] fix: update Signed-off-by: Junjie Gao --- revocation/ocsp/error.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 revocation/ocsp/error.go diff --git a/revocation/ocsp/error.go b/revocation/ocsp/error.go new file mode 100644 index 00000000..8ec9c35d --- /dev/null +++ b/revocation/ocsp/error.go @@ -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 +)