diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-04-01 14:09:29 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-04-01 14:09:29 -0600 |
commit | ce3ca541d83aedac70b6c251c149ed91e1fb843a (patch) | |
tree | fc42c0d5baa9d427f200ddd93b03df31abe6a38f /caddyconfig | |
parent | 581f1defcb6de580d57f3c3e58b29950d2f42cb7 (diff) |
caddytls: Update cipher suite names and curve names
Now using IANA-compliant names and Go 1.14's CipherSuites() function so
we don't have to maintain our own mapping of currently-secure cipher
suites.
Diffstat (limited to 'caddyconfig')
-rw-r--r-- | caddyconfig/httpcaddyfile/builtins.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/caddyconfig/httpcaddyfile/builtins.go b/caddyconfig/httpcaddyfile/builtins.go index 9fe52a7..26a421c 100644 --- a/caddyconfig/httpcaddyfile/builtins.go +++ b/caddyconfig/httpcaddyfile/builtins.go @@ -166,7 +166,7 @@ func parseTLS(h Helper) ([]ConfigValue, error) { case "ciphers": for h.NextArg() { - if _, ok := caddytls.SupportedCipherSuites[h.Val()]; !ok { + if !caddytls.CipherSuiteNameSupported(h.Val()) { return nil, h.Errf("Wrong cipher suite name or cipher suite not supported: '%s'", h.Val()) } cp.CipherSuites = append(cp.CipherSuites, h.Val()) |