Update to v0.29.1 cri-api

Signed-off-by: kiashok <kiashok@microsoft.com>
This commit is contained in:
kiashok
2023-12-18 03:52:08 -08:00
parent 8ccc902cd1
commit 25ab902198
104 changed files with 19558 additions and 2532 deletions

View File

@@ -0,0 +1,21 @@
//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
}