serverHandshakeState contains details of a server handshake in progress. It's discarded once the handshake has completed.
| 23 | // serverHandshakeState contains details of a server handshake in progress. |
| 24 | // It's discarded once the handshake has completed. |
| 25 | type 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. |
| 42 | func (c *Conn) serverHandshake(ctx context.Context) error { |
nothing calls this directly
no outgoing calls
no test coverage detected