MCPcopy Create free account
hub / github.com/XTLS/Go / serverHandshakeState

Struct serverHandshakeState

handshake_server.go:25–39  ·  view source on GitHub ↗

serverHandshakeState contains details of a server handshake in progress. It's discarded once the handshake has completed.

Source from the content-addressed store, hash-verified

23// serverHandshakeState contains details of a server handshake in progress.
24// It's discarded once the handshake has completed.
25type serverHandshakeState struct {
26 c *Conn
27 ctx context.Context
28 clientHello *clientHelloMsg
29 hello *serverHelloMsg
30 suite *cipherSuite
31 ecdheOk bool
32 ecSignOk bool
33 rsaDecryptOk bool
34 rsaSignOk bool
35 sessionState *sessionState
36 finishedHash finishedHash
37 masterSecret []byte
38 cert *Certificate
39}
40
41// serverHandshake performs a TLS handshake as a server.
42func (c *Conn) serverHandshake(ctx context.Context) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected