From 7ef21b8bba5b0e1daa959237bd7399590a5b824e Mon Sep 17 00:00:00 2001 From: Goutham Veeramachaneni Date: Fri, 17 Apr 2020 13:35:16 +0100 Subject: [PATCH] Revert "Expose the function to generate tls.Config" This reverts commit bd0918f29abd1d06e1c7dc521bab73b5104cc259. Signed-off-by: Goutham Veeramachaneni --- https/tls_config.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/https/tls_config.go b/https/tls_config.go index 423c2678..dd473d89 100644 --- a/https/tls_config.go +++ b/https/tls_config.go @@ -45,11 +45,10 @@ func getTLSConfig(configPath string) (*tls.Config, error) { if err != nil { return nil, err } - return ConfigToTLSConfig(&c.TLSConfig) + return configToTLSConfig(&c.TLSConfig) } -// ConfigToTLSConfig generates the golang tls.Config from the TLSStruct config. -func ConfigToTLSConfig(c *TLSStruct) (*tls.Config, error) { +func configToTLSConfig(c *TLSStruct) (*tls.Config, error) { cfg := &tls.Config{} if len(c.TLSCertPath) == 0 { return nil, errors.New("missing TLSCertPath")