()
| 873 | } |
| 874 | |
| 875 | func (hs *clientHandshakeState) serverResumedSession() bool { |
| 876 | // If the server responded with the same sessionId then it means the |
| 877 | // sessionTicket is being used to resume a TLS session. |
| 878 | return hs.session != nil && hs.hello.sessionId != nil && |
| 879 | bytes.Equal(hs.serverHello.sessionId, hs.hello.sessionId) |
| 880 | } |
| 881 | |
| 882 | func (hs *clientHandshakeState) processServerHello() (bool, error) { |
| 883 | c := hs.c |