Use Go 1.14 cipher suites

Now that Go 1.14 is out, we can remove cipher_suites.go and use the
stdlib.
This commit is contained in:
Cameron Moore 2020-04-24 09:13:11 -05:00
parent 38294cd0c6
commit 4897bea79f
2 changed files with 2 additions and 104 deletions

4
tls.go
View file

@ -8,7 +8,7 @@ import (
)
func writeTLSSupportedCipherStrings(w io.Writer, min uint16) error {
for _, c := range CipherSuites() {
for _, c := range tls.CipherSuites() {
var found bool
for _, v := range c.SupportedVersions {
@ -50,7 +50,7 @@ func getTLSMinVersion(v string) uint16 {
// getTLSCipherSuites converts a comma separated list of cipher suites into a
// slice of TLS cipher suite IDs.
func getTLSCipherSuites(v string) []uint16 {
supported := CipherSuites()
supported := tls.CipherSuites()
if v == "" {
suites := make([]uint16, len(supported))