]> Cypherpunks.ru repositories - gostls13.git/commit
crypto/x509: implement AddCertWithConstraint
authorRoland Shoemaker <roland@golang.org>
Mon, 14 Aug 2023 17:44:29 +0000 (10:44 -0700)
committerRoland Shoemaker <roland@golang.org>
Thu, 9 Nov 2023 19:41:40 +0000 (19:41 +0000)
commit9f63534858552faa3928ea3ff4c4f12302cb22f9
tree4f472b3a34b9fd02160952010d3c96bc4b80a014
parentbd7d757e91181a0a4be26032b6d6d7fc79c85acc
crypto/x509: implement AddCertWithConstraint

Adds the CertPool method AddCertWithConstraint, which allows adding a
certificate to a pool with an arbitrary constraint which cannot be
otherwise expressed in the certificate.

Fixes #57178

Change-Id: Ic5b0a22a66aefa5ba5d8ed5ef11389996b59862b
Reviewed-on: https://go-review.googlesource.com/c/go/+/519315
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Roland Shoemaker <roland@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
api/next/57178.txt [new file with mode: 0644]
src/crypto/x509/cert_pool.go
src/crypto/x509/root_windows.go
src/crypto/x509/verify.go
src/crypto/x509/verify_test.go