From 67d894ee652a3c6fd0a883a33b86686371b96a0e Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor
Date: Thu, 25 Jun 2020 16:39:56 -0700
Subject: [PATCH] [release-branch.go1.14] doc/go1.14:
crypto/tls.Config.NameToCertificate 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
(cherry picked from commit 186e61f319c2fb0d0abc72c85d8818eba06e26e3)
Reviewed-on: https://go-review.googlesource.com/c/go/+/240011
---
doc/go1.14.html | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/doc/go1.14.html b/doc/go1.14.html
index 478035360a..35a9f3c2f3 100644
--- a/doc/go1.14.html
+++ b/doc/go1.14.html
@@ -466,7 +466,15 @@ Do not send CLs removing the interior tags from such phrases.
certificate, and letting the package automatically select the best one.
Note that the performance of this selection is going to be poor unless the
Certificate.Leaf
- field is set.
+ field is set. The
+ Config.NameToCertificate
+ field, which only supports associating a single certificate with
+ a give name, is now deprecated and should be left as nil
.
+ Similarly the
+ Config.BuildNameToCertificate
+ method, which builds the NameToCertificate
field
+ from the leaf certificates, is now deprecated and should not be
+ called.
--
2.48.1