getAllMatchingCerts returns all certificates with exactly this subject (wildcards are NOT expanded).
(subject string)
| 333 | // getAllMatchingCerts returns all certificates with exactly this subject |
| 334 | // (wildcards are NOT expanded). |
| 335 | func (certCache *Cache) getAllMatchingCerts(subject string) []Certificate { |
| 336 | certCache.mu.RLock() |
| 337 | defer certCache.mu.RUnlock() |
| 338 | |
| 339 | allCertKeys := certCache.cacheIndex[subject] |
| 340 | |
| 341 | certs := make([]Certificate, len(allCertKeys)) |
| 342 | for i := range allCertKeys { |
| 343 | certs[i] = certCache.cache[allCertKeys[i]] |
| 344 | } |
| 345 | |
| 346 | return certs |
| 347 | } |
| 348 | |
| 349 | func (certCache *Cache) getAllCerts() []Certificate { |
| 350 | certCache.mu.RLock() |
no outgoing calls
no test coverage detected