]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: fix typo in docs for CreateCertificateRequest
authorEmmanuel Odeke <emm.odeke@gmail.com>
Wed, 18 May 2016 02:22:48 +0000 (20:22 -0600)
committerRuss Cox <rsc@golang.org>
Wed, 18 May 2016 03:06:56 +0000 (03:06 +0000)
Update the doc for CreateCertificateRequest
to state that it creates a
  `new certificate request`
instead of just a
  `new certificate`

Fixes #14649.

Change-Id: Ibbbcf91d74168998990990e78e5272a6cf294d51
Reviewed-on: https://go-review.googlesource.com/23204
Reviewed-by: Russ Cox <rsc@golang.org>
src/crypto/x509/x509.go

index 6004d5cd239d18cd683ac472b9c10965107d0b72..9e6d67df55fc94595c4315c3dfffa1d3a3313b63 100644 (file)
@@ -1853,8 +1853,8 @@ func parseCSRExtensions(rawAttributes []asn1.RawValue) ([]pkix.Extension, error)
        return ret, nil
 }
 
-// CreateCertificateRequest creates a new certificate based on a template. The
-// following members of template are used: Subject, Attributes,
+// CreateCertificateRequest creates a new certificate request based on a template.
+// The following members of template are used: Subject, Attributes,
 // SignatureAlgorithm, Extensions, DNSNames, EmailAddresses, and IPAddresses.
 // The private key is the private key of the signer.
 //