mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-22 21:32:32 +00:00
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:
parent
38294cd0c6
commit
4897bea79f
2 changed files with 2 additions and 104 deletions
4
tls.go
4
tls.go
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue