GetConfig returns global initialized config.
()
| 181 | |
| 182 | // GetConfig returns global initialized config. |
| 183 | func GetConfig() *Config { |
| 184 | currentConfigLock.Lock() |
| 185 | defer currentConfigLock.Unlock() |
| 186 | |
| 187 | return currentConfig |
| 188 | } |
| 189 | |
| 190 | func loadCert(pemFile string) (cert *x509.Certificate, err error) { |
| 191 | // only the first pem section is parsed and identified as certificate. |
no outgoing calls
no test coverage detected