From 6ca7f6f58d268e617501b7db9500113c13bae70c Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Fri, 18 Mar 2022 16:36:55 -0400 Subject: [PATCH] tlsutil: remove unused CipherString function --- tlsutil/config.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tlsutil/config.go b/tlsutil/config.go index e56d941695..bb434c5f95 100644 --- a/tlsutil/config.go +++ b/tlsutil/config.go @@ -1103,18 +1103,3 @@ func cipherSuiteLookup(ciphers []types.TLSCipherSuite) ([]uint16, error) { return suites, nil } - -// CipherString performs the inverse operation of types.ParseCiphers -func CipherString(ciphers []types.TLSCipherSuite) (string, error) { - err := types.ValidateConsulAgentCipherSuites(ciphers) - if err != nil { - return "", err - } - - cipherStrings := make([]string, len(ciphers)) - for i, cipher := range ciphers { - cipherStrings[i] = string(cipher) - } - - return strings.Join(cipherStrings, ","), nil -}