From edd5e9b0879d13ee6970a50153d85b8fec9f7686 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Wed, 18 Oct 2017 21:58:03 -0400 Subject: [PATCH] ocsp: remove incorrect iota and update docs on CreateRequest Change-Id: Ib347b468035d699156b6bff6c30fb653a1c5804d Reviewed-on: https://go-review.googlesource.com/71755 Reviewed-by: Joe Tsai --- ocsp/ocsp.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/ocsp/ocsp.go b/ocsp/ocsp.go index ae8d63e..5e73146 100644 --- a/ocsp/ocsp.go +++ b/ocsp/ocsp.go @@ -295,17 +295,17 @@ const ( // The enumerated reasons for revoking a certificate. See RFC 5280. const ( - Unspecified = iota - KeyCompromise = iota - CACompromise = iota - AffiliationChanged = iota - Superseded = iota - CessationOfOperation = iota - CertificateHold = iota - _ = iota - RemoveFromCRL = iota - PrivilegeWithdrawn = iota - AACompromise = iota + Unspecified = 0 + KeyCompromise = 1 + CACompromise = 2 + AffiliationChanged = 3 + Superseded = 4 + CessationOfOperation = 5 + CertificateHold = 6 + + RemoveFromCRL = 8 + PrivilegeWithdrawn = 9 + AACompromise = 10 ) // Request represents an OCSP request. See RFC 6960. @@ -659,7 +659,7 @@ func CreateRequest(cert, issuer *x509.Certificate, opts *RequestOptions) ([]byte // // The issuer cert is used to puplate the IssuerNameHash and IssuerKeyHash fields. // -// The template is used to populate the SerialNumber, RevocationStatus, RevokedAt, +// The template is used to populate the SerialNumber, Status, RevokedAt, // RevocationReason, ThisUpdate, and NextUpdate fields. // // If template.IssuerHash is not set, SHA1 will be used.