tailscale/tempfork/x509
Brad Fitzpatrick f5993f2440 crypto/x509: add support for CertPool to load certs lazily
(from patchset 1, 7cdc3c3e7427c9ef69e19224d6036c09c5ea1723, of
https://go-review.googlesource.com/c/go/+/229917/1)

This will allow building CertPools that consume less memory. (Most
certs are never accessed. Different users/programs access different
ones, but not many.)

This CL only adds the new internal mechanism (and uses it for the
old AddCert) but does not modify any existing root pool behavior.
(That is, the default Unix roots are still all slurped into memory as
of this CL)

Change-Id: Ib3a42e4050627b5e34413c595d8ced839c7bfa14
2020-04-24 21:27:48 -07:00
..
testdata Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
cert_pool.go crypto/x509: add support for CertPool to load certs lazily 2020-04-24 21:27:48 -07:00
example_test.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
name_constraints_test.go crypto/x509: add support for CertPool to load certs lazily 2020-04-24 21:27:48 -07:00
pem_decrypt_test.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
pem_decrypt.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
pkcs1.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
pkcs8_test.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
pkcs8.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root_aix.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root_bsd.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root_cgo_darwin.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root_darwin_arm64.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root_darwin_arm_gen.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root_darwin_test.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root_darwin.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root_js.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root_linux.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root_nocgo_darwin.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root_omit_test.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root_omit.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root_plan9.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root_solaris.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root_unix_test.go crypto/x509: add support for CertPool to load certs lazily 2020-04-24 21:27:48 -07:00
root_unix.go crypto/x509: add support for CertPool to load certs lazily 2020-04-24 21:27:48 -07:00
root_windows.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
root.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
sec1_test.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
sec1.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
test-file.crt Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
verify_test.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
verify.go crypto/x509: add support for CertPool to load certs lazily 2020-04-24 21:27:48 -07:00
x509_test_import.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00
x509_test.go crypto/x509: add support for CertPool to load certs lazily 2020-04-24 21:27:48 -07:00
x509.go Add fork of Go 1.15-dev's crypto/x509 2020-04-24 20:19:41 -07:00