ocsp: remove incorrect iota and update docs on CreateRequest
Change-Id: Ib347b468035d699156b6bff6c30fb653a1c5804d Reviewed-on: https://go-review.googlesource.com/71755 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
This commit is contained in:
+12
-12
@@ -295,17 +295,17 @@ const (
|
|||||||
|
|
||||||
// The enumerated reasons for revoking a certificate. See RFC 5280.
|
// The enumerated reasons for revoking a certificate. See RFC 5280.
|
||||||
const (
|
const (
|
||||||
Unspecified = iota
|
Unspecified = 0
|
||||||
KeyCompromise = iota
|
KeyCompromise = 1
|
||||||
CACompromise = iota
|
CACompromise = 2
|
||||||
AffiliationChanged = iota
|
AffiliationChanged = 3
|
||||||
Superseded = iota
|
Superseded = 4
|
||||||
CessationOfOperation = iota
|
CessationOfOperation = 5
|
||||||
CertificateHold = iota
|
CertificateHold = 6
|
||||||
_ = iota
|
|
||||||
RemoveFromCRL = iota
|
RemoveFromCRL = 8
|
||||||
PrivilegeWithdrawn = iota
|
PrivilegeWithdrawn = 9
|
||||||
AACompromise = iota
|
AACompromise = 10
|
||||||
)
|
)
|
||||||
|
|
||||||
// Request represents an OCSP request. See RFC 6960.
|
// 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 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.
|
// RevocationReason, ThisUpdate, and NextUpdate fields.
|
||||||
//
|
//
|
||||||
// If template.IssuerHash is not set, SHA1 will be used.
|
// If template.IssuerHash is not set, SHA1 will be used.
|
||||||
|
|||||||
Reference in New Issue
Block a user