HasCertAuth returns whether the configuration has certificate authentication or not.
()
| 93 | |
| 94 | // HasCertAuth returns whether the configuration has certificate authentication or not. |
| 95 | func (c *Config) HasCertAuth() bool { |
| 96 | return (len(c.TLS.CertData) != 0 || len(c.TLS.CertFile) != 0) && (len(c.TLS.KeyData) != 0 || len(c.TLS.KeyFile) != 0) |
| 97 | } |
| 98 | |
| 99 | // HasCertCallbacks returns whether the configuration has certificate callback or not. |
| 100 | func (c *Config) HasCertCallback() bool { |
no outgoing calls
no test coverage detected