From: Adam Langley Date: Wed, 8 Feb 2017 17:40:14 +0000 (-0800) Subject: crypto/x509: CreateCertificateRequest reads ExtraExtensions, not Extensions. X-Git-Tag: go1.9beta1~1650 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7853b090dd8e9f02147581c4e7bdbb45021e787c;p=gostls13.git crypto/x509: CreateCertificateRequest reads ExtraExtensions, not Extensions. Fixes #18899. Change-Id: I6a4bf0aad9cf1dbe6691ba4e4c478fcb33c44528 Reviewed-on: https://go-review.googlesource.com/36558 Reviewed-by: Ian Lance Taylor --- diff --git a/src/crypto/x509/x509.go b/src/crypto/x509/x509.go index 1c5f937c1d..8c7f0b983a 100644 --- a/src/crypto/x509/x509.go +++ b/src/crypto/x509/x509.go @@ -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.