(key string)
| 79 | } |
| 80 | |
| 81 | func getTLSConfigClone(key string) (config *tls.Config) { |
| 82 | tlsConfigLock.RLock() |
| 83 | if v, ok := tlsConfigRegistry[key]; ok { |
| 84 | config = v.Clone() |
| 85 | } |
| 86 | tlsConfigLock.RUnlock() |
| 87 | return |
| 88 | } |
| 89 | |
| 90 | // Returns the bool value of the input. |
| 91 | // The 2nd return value indicates if the input was a valid bool value |