Lines Matching refs:Bugs
232 if config.Bugs.NullAllCiphers {
248 if hc.config.Bugs.NullAllCiphers {
325 if hc.config.Bugs.SequenceNumberMapping != nil {
327 seqU64 = hc.config.Bugs.SequenceNumberMapping(seqU64)
554 if config.Bugs.MaxPadding {
564 if config.Bugs.PaddingFirstByteBad || config.Bugs.PaddingFirstByteBadIf255 && paddingLen == 256 {
591 paddingLen := hc.config.Bugs.RecordPadding
592 if hc.config.Bugs.OmitRecordContents {
795 if err == io.EOF && c.config.Bugs.ExpectCloseNotify {
829 expect = c.config.Bugs.ExpectInitialRecordVersion
894 …if c.config.Bugs.ExpectRecordSplitting && typ == recordTypeApplicationData && length != 1 && !c.se…
976 if c.config.Bugs.MaxReceivePlaintext != 0 {
977 max = c.config.Bugs.MaxReceivePlaintext
1054 …if pack := c.config.Bugs.ExpectPackedEncryptedHandshake; pack > 0 && len(data) < pack && c.out.cip…
1070 if c.config.Bugs.FragmentAlert {
1073 } else if c.config.Bugs.DoubleAlert {
1118 if c.config.Bugs.SendWrongMessageType != 0 && msgType == c.config.Bugs.SendWrongMessageType {
1120 } else if msgType == typeServerHello && c.config.Bugs.SendServerHelloAsHelloRetryRequest {
1130 …if c.config.Bugs.SendTrailingMessageData != 0 && msgType == c.config.Bugs.SendTrailingMessageData {
1151 if c.config.Bugs.SendHelloRequestBeforeEveryHandshakeMessage {
1158 if c.config.Bugs.PackHandshakeFlight {
1169 if typ == recordTypeApplicationData && c.config.Bugs.SendPostHandshakeChangeCipherSpec {
1185 if m > maxPlaintext && !c.config.Bugs.SendLargeRecords {
1188 …if typ == recordTypeHandshake && c.config.Bugs.MaxHandshakeRecordLength > 0 && m > c.config.Bugs.M…
1189 m = c.config.Bugs.MaxHandshakeRecordLength
1193 if first && isClientHello && !c.config.Bugs.FragmentClientVersion && m < 6 {
1224 if outerType := c.config.Bugs.OuterRecordType; outerType != 0 {
1241 if c.config.Bugs.SendRecordVersion != 0 {
1242 vers = c.config.Bugs.SendRecordVersion
1244 if c.vers == 0 && c.config.Bugs.SendInitialRecordVersion != 0 {
1245 vers = c.config.Bugs.SendInitialRecordVersion
1466 if len(c.config.Bugs.TimeoutSchedule) == 0 {
1472 if c.config.Bugs.PacketAdaptor == nil {
1475 for _, timeout := range c.config.Bugs.TimeoutSchedule {
1477 packets, err := c.config.Bugs.PacketAdaptor.SendReadTimeout(timeout)
1531 if c.config.Bugs.SendSpuriousAlert != 0 {
1532 c.sendAlertLocked(alertLevelError, c.config.Bugs.SendSpuriousAlert)
1535 if c.config.Bugs.SendHelloRequestBeforeEveryAppDataRecord {
1565 if c.config.Bugs.ExpectGREASE && !newSessionTicket.hasGREASEExtension {
1569 if c.config.Bugs.ExpectTicketEarlyData && newSessionTicket.maxEarlyDataSize == 0 {
1573 if c.config.Bugs.ExpectNoNewSessionTicket {
1601 if !ok || !c.config.Bugs.UseFirstSessionTicket {
1638 if c.config.Bugs.RejectUnsolicitedKeyUpdate {
1681 if c.config.Bugs.BadHelloRequest != nil {
1682 helloReq = c.config.Bugs.BadHelloRequest
1762 if c.handshakeComplete && !c.config.Bugs.NoCloseNotify {
1764 if c.config.Bugs.SendAlertOnShutdown != 0 {
1765 alert = c.config.Bugs.SendAlertOnShutdown
1778 if c.handshakeComplete && alertErr == nil && c.config.Bugs.ExpectCloseNotify {
1807 if c.isDTLS && c.config.Bugs.SendSplitAlert {
1816 if data := c.config.Bugs.AppDataBeforeHandshake; data != nil {
1824 if c.handshakeErr == nil && c.config.Bugs.SendInvalidRecordType {
1943 if c.config.Bugs.NoRenegotiationInfo {
1946 if c.cipherSuite == nil && c.config.Bugs.NoRenegotiationInfoInInitial {
1949 if c.cipherSuite != nil && c.config.Bugs.NoRenegotiationInfoAfterInitial {
1978 duplicateEarlyDataExtension: c.config.Bugs.DuplicateTicketEarlyData,
1979 customExtension: c.config.Bugs.CustomTicketExtension,
1985 if c.config.Bugs.SendTicketLifetime != 0 {
1986 m.ticketLifetime = uint32(c.config.Bugs.SendTicketLifetime / time.Second)
2000 if !c.config.Bugs.SendEmptySessionTicket {