()
| 675 | } |
| 676 | |
| 677 | func (hs *clientHandshakeState) serverResumedSession() bool { |
| 678 | // If the server responded with the same sessionId then it means the |
| 679 | // sessionTicket is being used to resume a TLS session. |
| 680 | return hs.session != nil && hs.hello.sessionId != nil && |
| 681 | bytes.Equal(hs.serverHello.sessionId, hs.hello.sessionId) |
| 682 | } |
| 683 | |
| 684 | func (hs *clientHandshakeState) processServerHello() (bool, error) { |
| 685 | c := hs.c |