]> Cypherpunks.ru repositories - gostls13.git/commit
crypto/x509: implement SetFallbackRoots
authorRoland Shoemaker <roland@golang.org>
Wed, 9 Nov 2022 22:04:10 +0000 (14:04 -0800)
committerGopher Robot <gobot@golang.org>
Fri, 18 Nov 2022 23:57:10 +0000 (23:57 +0000)
commit04d6aa6514617d5284f0657928eccb579a0f42e2
treed64fc09a490c38433da28116e629ad7a765763a8
parentc8244489cc4d4b8786b09ee9e84954c38cd52275
crypto/x509: implement SetFallbackRoots

Adds a method which allows users to set a fallback certificate pool for
usage during verification if the system certificate pool is empty.

Updates #43958

Change-Id: I279dd2f753743bce19790f2ae29f063c89c9359d
Reviewed-on: https://go-review.googlesource.com/c/go/+/449235
Run-TryBot: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Roland Shoemaker <roland@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
api/next/43958.txt [new file with mode: 0644]
src/crypto/x509/root.go
src/crypto/x509/root_test.go [new file with mode: 0644]
src/crypto/x509/verify.go