Skip to content

Commit

Permalink
[release-branch.go1.14] doc/go1.14: crypto/tls.Config.NameToCertifica…
Browse files Browse the repository at this point in the history
…te is deprecated

Also crypto/tls.Config.BuildNameToCertificate.

Note that this field and method were deprecated in the Go 1.14 release,
so this change is to the 1.14 release notes.

For #37626
Fixes #38030

Change-Id: If8549bc746f42a93f1903439e1b464b3e81e2c19
Reviewed-on: https://go-review.googlesource.com/c/go/+/240005
Reviewed-by: Filippo Valsorda <filippo@golang.org>
(cherry picked from commit 186e61f)
Reviewed-on: https://go-review.googlesource.com/c/go/+/240011
  • Loading branch information
ianlancetaylor committed Jun 26, 2020
1 parent e2ecfdf commit 67d894e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion doc/go1.14.html
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,15 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
certificate, and letting the package automatically select the best one.
Note that the performance of this selection is going to be poor unless the
<a href="/pkg/crypto/tls/#Certificate.Leaf"><code>Certificate.Leaf</code></a>
field is set.
field is set. The
<a href="/pkg/crypto/tls/#Config.NameToCertificate"><code>Config.NameToCertificate</code></a>
field, which only supports associating a single certificate with
a give name, is now deprecated and should be left as <code>nil</code>.
Similarly the
<a href="/pkg/crypto/tls/#Config.BuildNameToCertificate"><code>Config.BuildNameToCertificate</code></a>
method, which builds the <code>NameToCertificate</code> field
from the leaf certificates, is now deprecated and should not be
called.
</p>

<p><!-- CL 175517 -->
Expand Down

0 comments on commit 67d894e

Please sign in to comment.