]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: fix documentation typos
authorAdam Langley <agl@golang.org>
Fri, 18 Nov 2011 20:48:34 +0000 (15:48 -0500)
committerAdam Langley <agl@golang.org>
Fri, 18 Nov 2011 20:48:34 +0000 (15:48 -0500)
Thanks to Jeff R. Allen for pointing them out.

R=bradfitz, gri
CC=golang-dev
https://golang.org/cl/5412052

src/pkg/crypto/x509/cert_pool.go
src/pkg/crypto/x509/x509.go

index b9196ed46ed8fb9b028ae30bda8b09ec63e91ff4..adc7f9bc6d76e09bacbefd4703f9235b12f94756 100644 (file)
@@ -8,7 +8,7 @@ import (
        "encoding/pem"
 )
 
-// Roots is a set of certificates.
+// CertPool is a set of certificates.
 type CertPool struct {
        bySubjectKeyId map[string][]int
        byName         map[string][]int
@@ -70,11 +70,11 @@ func (s *CertPool) AddCert(cert *Certificate) {
        s.byName[name] = append(s.byName[name], n)
 }
 
-// AppendCertsFromPEM attempts to parse a series of PEM encoded root
-// certificates. It appends any certificates found to s and returns true if any
-// certificates were successfully parsed.
+// AppendCertsFromPEM attempts to parse a series of PEM encoded certificates.
+// It appends any certificates found to s and returns true if any certificates
+// were successfully parsed.
 //
-// On many Linux systems, /etc/ssl/cert.pem will contains the system wide set
+// On many Linux systems, /etc/ssl/cert.pem will contain the system wide set
 // of root CAs in a format suitable for this function.
 func (s *CertPool) AppendCertsFromPEM(pemCerts []byte) (ok bool) {
        for len(pemCerts) > 0 {
index 9ff7db9a0f99ffb0fa02e80d88ac1e2110d8b623..a5f5d8d4056a77e2b6a1425693fa43e5669b5626 100644 (file)
@@ -899,11 +899,10 @@ var (
        oidRSA         = []int{1, 2, 840, 113549, 1, 1, 1}
 )
 
-// CreateSelfSignedCertificate creates a new certificate based on
-// a template. The following members of template are used: SerialNumber,
-// Subject, NotBefore, NotAfter, KeyUsage, BasicConstraintsValid, IsCA,
-// MaxPathLen, SubjectKeyId, DNSNames, PermittedDNSDomainsCritical,
-// PermittedDNSDomains.
+// CreateCertificate creates a new certificate based on a template. The
+// following members of template are used: SerialNumber, Subject, NotBefore,
+// NotAfter, KeyUsage, BasicConstraintsValid, IsCA, MaxPathLen, SubjectKeyId,
+// DNSNames, PermittedDNSDomainsCritical, PermittedDNSDomains.
 //
 // The certificate is signed by parent. If parent is equal to template then the
 // certificate is self-signed. The parameter pub is the public key of the