]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: move and update the SSL_CERT_FILE and SSL_CERT_DIR docs
authorFilippo Valsorda <filippo@golang.org>
Wed, 24 Jun 2020 20:49:05 +0000 (16:49 -0400)
committerFilippo Valsorda <filippo@golang.org>
Thu, 25 Jun 2020 17:26:38 +0000 (17:26 +0000)
Fixes #37907

Change-Id: Ia077de6dcc74ed761d278eab4efbf45e151429b8
Reviewed-on: https://go-review.googlesource.com/c/go/+/239747
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
src/crypto/x509/cert_pool.go
src/crypto/x509/x509.go

index 3e1e5fb8cd1c1ff405539fcbfe6ca41e2629f560..59ec4b68947d42258d1c119e85dd1a26a9ca098c 100644 (file)
@@ -47,11 +47,15 @@ func (s *CertPool) copy() *CertPool {
 
 // SystemCertPool returns a copy of the system cert pool.
 //
-// Any mutations to the returned pool are not written to disk and do
-// not affect any other pool returned by SystemCertPool.
+// On Unix systems other than macOS the environment variables SSL_CERT_FILE and
+// SSL_CERT_DIR can be used to override the system default locations for the SSL
+// certificate file and SSL certificate files directory, respectively. The
+// latter can be a colon-separated list.
 //
-// New changes in the system cert pool might not be reflected
-// in subsequent calls.
+// Any mutations to the returned pool are not written to disk and do not affect
+// any other pool returned by SystemCertPool.
+//
+// New changes in the system cert pool might not be reflected in subsequent calls.
 func SystemCertPool() (*CertPool, error) {
        if runtime.GOOS == "windows" {
                // Issue 16736, 18609:
index 338b48861c92e06604c5579d3e3919dfafc1ed94..9cc3acdb3fbd2ad9986b51e900fb55c61f5b89cf 100644 (file)
@@ -3,10 +3,6 @@
 // license that can be found in the LICENSE file.
 
 // Package x509 parses X.509-encoded keys and certificates.
-//
-// On UNIX systems the environment variables SSL_CERT_FILE and SSL_CERT_DIR
-// can be used to override the system default locations for the SSL certificate
-// file and SSL certificate files directory, respectively.
 package x509
 
 import (