File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -279,21 +279,22 @@ func getOIDFromHashAlgorithm(target crypto.Hash) asn1.ObjectIdentifier {
279
279
280
280
// This is the exposed reflection of the internal OCSP structures.
281
281
282
- // The status values that can be expressed in OCSP. See RFC 6960.
282
+ // The status values that can be expressed in OCSP. See RFC 6960.
283
+ // These are used for the Response.Status field.
283
284
const (
284
285
// Good means that the certificate is valid.
285
- Good = iota
286
+ Good = 0
286
287
// Revoked means that the certificate has been deliberately revoked.
287
- Revoked
288
+ Revoked = 1
288
289
// Unknown means that the OCSP responder doesn't know about the certificate.
289
- Unknown
290
+ Unknown = 2
290
291
// ServerFailed is unused and was never used (see
291
292
// https://go-review.googlesource.com/#/c/18944). ParseResponse will
292
293
// return a ResponseError when an error response is parsed.
293
- ServerFailed
294
+ ServerFailed = 3
294
295
)
295
296
296
- // The enumerated reasons for revoking a certificate. See RFC 5280.
297
+ // The enumerated reasons for revoking a certificate. See RFC 5280.
297
298
const (
298
299
Unspecified = 0
299
300
KeyCompromise = 1
You can’t perform that action at this time.
0 commit comments