MCPcopy
hub / github.com/sideshow/apns2 / cacheKey

Function cacheKey

client_manager.go:154–162  ·  view source on GitHub ↗
(certificate tls.Certificate)

Source from the content-addressed store, hash-verified

152}
153
154func cacheKey(certificate tls.Certificate) [sha1.Size]byte {
155 var data []byte
156
157 for _, cert := range certificate.Certificate {
158 data = append(data, cert...)
159 }
160
161 return sha1.Sum(data)
162}

Callers 2

AddMethod · 0.85
GetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected