]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: document specifically that only v3 certificates are created.
authorAdam Langley <agl@golang.org>
Sat, 25 Nov 2017 18:54:18 +0000 (10:54 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 25 Nov 2017 23:13:33 +0000 (23:13 +0000)
Fixes #21593

Change-Id: I5d6c644ed1d60ae4610712155bae5cf13ee1f886
Reviewed-on: https://go-review.googlesource.com/79876
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/x509/x509.go

index 0b8652209f5a1c27b80be73d5a748a9d726f5b7b..4c9182d9021ec38396d01234205d658321a38f0e 100644 (file)
@@ -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,