MCPcopy Create free account
hub / github.com/FiloSottile/intermediates / Pool

Function Pool

intermediates.go:56–58  ·  view source on GitHub ↗

Pool returns a new x509.CertPool containing a set of known WebPKI intermediates chaining to roots in the Mozilla Root Program. These certificates must not be used as trusted roots, but can be used as the Intermediates pool in x509.VerifyOptions. The returned CertPool can be modified safely, for ex

()

Source from the content-addressed store, hash-verified

54// intermediates provided by the server, and multiple invocations return
55// distinct CertPools.
56func Pool() *x509.CertPool {
57 return copyCertPool(pool())
58}
59
60// VerifyConnection is a function that can be used as the VerifyConnection
61// callback in a tls.Config for a client connection.

Callers 2

TestCountFunction · 0.85
TestReuseFunction · 0.85

Calls 2

poolFunction · 0.85
copyCertPoolFunction · 0.70

Tested by 2

TestCountFunction · 0.68
TestReuseFunction · 0.68