Lines Matching refs:connState
850 connState := tlsConn.ConnectionState()
851 if vers := connState.Version; expectations.version != 0 && vers != expectations.version {
855 if cipher := connState.CipherSuite; expectations.cipher != 0 && cipher != expectations.cipher {
858 if didResume := connState.DidResume; isResume && didResume == test.expectResumeRejected {
863 channelID := connState.ChannelID
872 } else if connState.ChannelID != nil {
877 if !connState.TokenBindingNegotiated {
880 if connState.TokenBindingParam != expectations.tokenBindingParam {
881 …return fmt.Errorf("expected param %02x, but got %02x", expectations.tokenBindingParam, connState.T…
883 } else if connState.TokenBindingNegotiated {
888 if actual := connState.NegotiatedProtocol; actual != expected {
894 if actual := connState.NegotiatedProtocol; actual != "" {
900 if (expectations.nextProtoType == alpn) != connState.NegotiatedProtocolFromALPN {
906 if !connState.HasApplicationSettings {
909 if !bytes.Equal(connState.PeerApplicationSettings, expectations.peerApplicationSettings) {
910 …return fmt.Errorf("peer application settings mismatch: got %q, wanted %q", connState.PeerApplicati…
912 } else if connState.HasApplicationSettings {
916 if p := connState.SRTPProtectionProfile; p != expectations.srtpProtectionProfile {
920 …if expectations.ocspResponse != nil && !bytes.Equal(expectations.ocspResponse, connState.OCSPRespo…
921 …return fmt.Errorf("OCSP Response mismatch: got %x, wanted %x", connState.OCSPResponse, expectation…
924 if expectations.sctList != nil && !bytes.Equal(expectations.sctList, connState.SCTList) {
928 …if expected := expectations.peerSignatureAlgorithm; expected != 0 && expected != connState.PeerSig…
929 …expected peer to use signature algorithm %04x, but got %04x", expected, connState.PeerSignatureAlg…
932 if expected := expectations.curveID; expected != 0 && expected != connState.CurveID {
933 return fmt.Errorf("expected peer to use curve %04x, but got %04x", expected, connState.CurveID)
937 if len(connState.PeerCertificates) != len(expectations.peerCertificate.Certificate) {
938 …return fmt.Errorf("expected peer to send %d certificates, but got %d", len(connState.PeerCertifica…
940 for i, cert := range connState.PeerCertificates {
948 if !bytes.Equal(expectations.quicTransportParams, connState.QUICTransportParams) {
954 if !bytes.Equal(expectations.quicTransportParamsLegacy, connState.QUICTransportParamsLegacy) {