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

Struct serverHandshakeState

handshake_server.go:27–41  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected