From: Adam Langley Date: Sat, 25 Nov 2017 18:54:18 +0000 (-0800) Subject: crypto/x509: document specifically that only v3 certificates are created. X-Git-Tag: go1.10beta1~142 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7da2f8278f10ed389e0d96cb43e5445d80d21f9b;p=gostls13.git crypto/x509: document specifically that only v3 certificates are created. Fixes #21593 Change-Id: I5d6c644ed1d60ae4610712155bae5cf13ee1f886 Reviewed-on: https://go-review.googlesource.com/79876 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/crypto/x509/x509.go b/src/crypto/x509/x509.go index 0b8652209f..4c9182d902 100644 --- a/src/crypto/x509/x509.go +++ b/src/crypto/x509/x509.go @@ -2050,7 +2050,7 @@ func signingParamsForPublicKey(pub interface{}, requestedSigAlgo SignatureAlgori // just an empty SEQUENCE. var emptyASN1Subject = []byte{0x30, 0} -// CreateCertificate creates a new certificate based on a template. +// CreateCertificate creates a new X.509v3 certificate based on a template. // The following members of template are used: AuthorityKeyId, // BasicConstraintsValid, DNSNames, ExcludedDNSDomains, ExtKeyUsage, // IsCA, KeyUsage, MaxPathLen, MaxPathLenZero, NotAfter, NotBefore,