DeregisterTLSConfig removes the tls.Config associated with key.
(key string)
| 71 | |
| 72 | // DeregisterTLSConfig removes the tls.Config associated with key. |
| 73 | func DeregisterTLSConfig(key string) { |
| 74 | tlsConfigLock.Lock() |
| 75 | if tlsConfigRegistry != nil { |
| 76 | delete(tlsConfigRegistry, key) |
| 77 | } |
| 78 | tlsConfigLock.Unlock() |
| 79 | } |
| 80 | |
| 81 | func getTLSConfigClone(key string) (config *tls.Config) { |
| 82 | tlsConfigLock.RLock() |