1
0
mirror of https://github.com/rancher/steve.git synced 2025-07-22 18:42:06 +00:00
steve/vendor/github.com/gorilla/websocket/trace.go
Darren Shepherd cc1e4e52a0 Update vendor
2020-02-21 22:19:07 -07:00

20 lines
396 B
Go

// +build go1.8
package websocket
import (
"crypto/tls"
"net/http/httptrace"
)
func doHandshakeWithTrace(trace *httptrace.ClientTrace, tlsConn *tls.Conn, cfg *tls.Config) error {
if trace.TLSHandshakeStart != nil {
trace.TLSHandshakeStart()
}
err := doHandshake(tlsConn, cfg)
if trace.TLSHandshakeDone != nil {
trace.TLSHandshakeDone(tlsConn.ConnectionState(), err)
}
return err
}