diff options
author | Jordan <me@jordan.im> | 2023-12-16 17:41:01 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2023-12-16 17:41:01 -0700 |
commit | 7ecc048ae012a631bc3f0dcbd62f6190384ea0cd (patch) | |
tree | f8dd09feb67af740fb92d13c458e602f9bee8d45 /vendor/github.com/gorilla/websocket/tls_handshake_116.go | |
parent | a3dac1a28fdc9e42d85c4686858c64597cf1a15b (diff) | |
download | keep-main.tar.gz keep-main.zip |
Diffstat (limited to 'vendor/github.com/gorilla/websocket/tls_handshake_116.go')
-rw-r--r-- | vendor/github.com/gorilla/websocket/tls_handshake_116.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/vendor/github.com/gorilla/websocket/tls_handshake_116.go b/vendor/github.com/gorilla/websocket/tls_handshake_116.go deleted file mode 100644 index e1b2b44..0000000 --- a/vendor/github.com/gorilla/websocket/tls_handshake_116.go +++ /dev/null @@ -1,21 +0,0 @@ -//go:build !go1.17 -// +build !go1.17 - -package websocket - -import ( - "context" - "crypto/tls" -) - -func doHandshake(ctx context.Context, tlsConn *tls.Conn, cfg *tls.Config) error { - if err := tlsConn.Handshake(); err != nil { - return err - } - if !cfg.InsecureSkipVerify { - if err := tlsConn.VerifyHostname(cfg.ServerName); err != nil { - return err - } - } - return nil -} |