tlsutil: remove unused CipherString function

pull/12522/head
Mike Morris 2022-03-18 16:36:55 -04:00
parent 694cd04cc6
commit 6ca7f6f58d
1 changed files with 0 additions and 15 deletions

View File

@ -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
}