22 references to TlsContentType
System.Net.Security (22)
System\Net\Security\SslStream.IO.cs (9)
341
else if (token.Failed && (_lastFrame.Header.Type ==
TlsContentType
.Handshake || _lastFrame.Header.Type ==
TlsContentType
.ChangeCipherSpec))
363
if (_lastFrame.Header.Type ==
TlsContentType
.Alert && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify &&
423
case
TlsContentType
.Alert:
429
case
TlsContentType
.Handshake:
474
case
TlsContentType
.AppData:
508
if ((nextHeader.Type !=
TlsContentType
.Handshake && nextHeader.Type !=
TlsContentType
.ChangeCipherSpec) && !_isRenego || frameSize > availableData.Length - chunkSize)
933
if (_lastFrame.Header.Type !=
TlsContentType
.AppData)
System\Net\Security\TlsFrameHelper.cs (13)
88
public
TlsContentType
Type;
130
if (Header.Type ==
TlsContentType
.Handshake)
154
private static readonly byte[] s_protocolMismatch13 = new byte[] { (byte)
TlsContentType
.Alert, 3, 4, 0, 2, 2, 70 };
155
private static readonly byte[] s_protocolMismatch12 = new byte[] { (byte)
TlsContentType
.Alert, 3, 3, 0, 2, 2, 70 };
156
private static readonly byte[] s_protocolMismatch11 = new byte[] { (byte)
TlsContentType
.Alert, 3, 2, 0, 2, 2, 70 };
157
private static readonly byte[] s_protocolMismatch10 = new byte[] { (byte)
TlsContentType
.Alert, 3, 1, 0, 2, 2, 70 };
158
private static readonly byte[] s_protocolMismatch30 = new byte[] { (byte)
TlsContentType
.Alert, 3, 0, 0, 2, 2, 40 };
179
header.Type = (
TlsContentType
)frame[0];
211
header.Type =
TlsContentType
.Handshake;
241
if (info.Header.Type ==
TlsContentType
.Alert)
254
if (info.Header.Type !=
TlsContentType
.Handshake || frame.Length <= HandshakeTypeOffset)
306
if (frame.Length < 7 || frame[0] != (byte)
TlsContentType
.Alert)
343
byte[] buffer = new byte[] { (byte)
TlsContentType
.Alert, 3, 3, 0, 2, 2, (byte)reason };