]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: CreateCertificateRequest reads ExtraExtensions, not Extensions.
authorAdam Langley <agl@golang.org>
Wed, 8 Feb 2017 17:40:14 +0000 (09:40 -0800)
committerAdam Langley <agl@golang.org>
Thu, 9 Feb 2017 18:34:11 +0000 (18:34 +0000)
Fixes #18899.

Change-Id: I6a4bf0aad9cf1dbe6691ba4e4c478fcb33c44528
Reviewed-on: https://go-review.googlesource.com/36558
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/crypto/x509/x509.go

index 1c5f937c1d6ad4e863d592b0bf49e0b6c599c3c6..8c7f0b983af44b513a67da974e3b0cbfa77f62ba 100644 (file)
@@ -2033,7 +2033,7 @@ func parseCSRExtensions(rawAttributes []asn1.RawValue) ([]pkix.Extension, error)
 
 // 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.
+// SignatureAlgorithm, ExtraExtensions, DNSNames, EmailAddresses, and IPAddresses.
 // The private key is the private key of the signer.
 //
 // The returned slice is the certificate request in DER encoding.