Remove removes certificates with the given hashes from the cache. This is effectively used to unload manually-loaded certificates.
(hashes []string)
| 427 | // Remove removes certificates with the given hashes from the cache. |
| 428 | // This is effectively used to unload manually-loaded certificates. |
| 429 | func (certCache *Cache) Remove(hashes []string) { |
| 430 | certCache.mu.Lock() |
| 431 | for _, h := range hashes { |
| 432 | cert := certCache.cache[h] |
| 433 | certCache.removeCertificate(cert) |
| 434 | } |
| 435 | certCache.mu.Unlock() |
| 436 | } |
| 437 | |
| 438 | var ( |
| 439 | defaultCache *Cache |
no test coverage detected