MCPcopy
hub / github.com/puma/puma-dev / NewCertCache

Function NewCertCache

dev/ssl.go:123–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121}
122
123func NewCertCache() *certCache {
124 cache, err := lru.NewARC(1024)
125 if err != nil {
126 panic(err)
127 }
128
129 return &certCache{
130 cache: cache,
131 }
132}
133
134func (c *certCache) GetCertificate(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error) {
135 c.lock.Lock()

Callers 2

ServeTLSMethod · 0.85
ServeTLSMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected