Handshake runs the client or server handshake protocol if it has not yet been run. Most uses of this package need not call Handshake explicitly: the first [Conn.Read] or [Conn.Write] will call it automatically. For control over canceling or setting a timeout on a handshake, use [Conn.HandshakeCont
()
| 1562 | // bits. This limit can be overridden by setting tlsmaxrsasize in the GODEBUG |
| 1563 | // environment variable (e.g. GODEBUG=tlsmaxrsasize=4096). |
| 1564 | func (c *Conn) Handshake() error { |
| 1565 | return c.HandshakeContext(context.Background()) |
| 1566 | } |
| 1567 | |
| 1568 | // HandshakeContext runs the client or server handshake |
| 1569 | // protocol if it has not yet been run. |
no test coverage detected