mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-24 16:17:11 +08:00
Use HandshakeContext instead of Handshake for TLS Connections set up (#40588)
This commit is contained in:
@@ -379,7 +379,7 @@ func makeTLSConn(t *testing.T, server, client net.Conn) (*tls.Conn, *tls.Conn) {
|
||||
tlsConnChan <- struct {
|
||||
*tls.Conn
|
||||
error
|
||||
}{tlsConn, tlsConn.Handshake()}
|
||||
}{tlsConn, tlsConn.HandshakeContext(ctx)}
|
||||
}()
|
||||
|
||||
// Client
|
||||
@@ -388,7 +388,7 @@ func makeTLSConn(t *testing.T, server, client net.Conn) (*tls.Conn, *tls.Conn) {
|
||||
tlsConnChan <- struct {
|
||||
*tls.Conn
|
||||
error
|
||||
}{tlsConn, tlsConn.Handshake()}
|
||||
}{tlsConn, tlsConn.HandshakeContext(ctx)}
|
||||
}()
|
||||
|
||||
tlsConnSlice := make([]*tls.Conn, 2)
|
||||
|
||||
Reference in New Issue
Block a user