23 references to TlsContentType
System.Net.Security (23)
System\Net\Security\SslStream.IO.cs (10)
366
else if (token.Failed && (_lastFrame.Header.Type ==
TlsContentType
.Handshake || _lastFrame.Header.Type ==
TlsContentType
.ChangeCipherSpec))
388
if (_lastFrame.Header.Type ==
TlsContentType
.Alert && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify &&
448
case
TlsContentType
.Alert:
454
case
TlsContentType
.Handshake:
510
case
TlsContentType
.AppData:
526
bool isClientHello = _lastFrame.Header.Type ==
TlsContentType
.Handshake &&
559
if ((nextHeader.Type !=
TlsContentType
.Handshake && nextHeader.Type !=
TlsContentType
.ChangeCipherSpec) && !_isRenego || frameSize > availableData.Length - chunkSize)
1021
if (_lastFrame.Header.Type !=
TlsContentType
.AppData)
System\Net\Security\TlsFrameHelper.cs (13)
88
public
TlsContentType
Type;
129
if (Header.Type ==
TlsContentType
.Handshake)
153
private static readonly byte[] s_protocolMismatch13 = new byte[] { (byte)
TlsContentType
.Alert, 3, 4, 0, 2, 2, 70 };
154
private static readonly byte[] s_protocolMismatch12 = new byte[] { (byte)
TlsContentType
.Alert, 3, 3, 0, 2, 2, 70 };
155
private static readonly byte[] s_protocolMismatch11 = new byte[] { (byte)
TlsContentType
.Alert, 3, 2, 0, 2, 2, 70 };
156
private static readonly byte[] s_protocolMismatch10 = new byte[] { (byte)
TlsContentType
.Alert, 3, 1, 0, 2, 2, 70 };
157
private static readonly byte[] s_protocolMismatch30 = new byte[] { (byte)
TlsContentType
.Alert, 3, 0, 0, 2, 2, 40 };
178
header.Type = (
TlsContentType
)frame[0];
210
header.Type =
TlsContentType
.Handshake;
240
if (info.Header.Type ==
TlsContentType
.Alert)
253
if (info.Header.Type !=
TlsContentType
.Handshake || frame.Length <= HandshakeTypeOffset)
305
if (frame.Length < 7 || frame[0] != (byte)
TlsContentType
.Alert)
342
byte[] buffer = new byte[] { (byte)
TlsContentType
.Alert, 3, 3, 0, 2, 2, (byte)reason };