mirror of https://github.com/hashicorp/consul
tlsutil: remove unused CipherString function
parent
694cd04cc6
commit
6ca7f6f58d
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue