3 writes to Header
System.Net.Security (3)
System\Net\Security\SslStream.IO.cs (2)
932
TlsFrameHelper.TryGetFrameHeader(_buffer.EncryptedReadOnlySpan, ref _lastFrame.
Header
);
1019
if (!TlsFrameHelper.TryGetFrameHeader(buffer, ref _lastFrame.
Header
))
System\Net\Security\TlsFrameHelper.cs (1)
236
bool gotHeader = TryGetFrameHeader(frame, ref info.
Header
);
25 references to Header
System.Net.Security (25)
System\Net\Security\SslStream.IO.cs (9)
341
else if (token.Failed && (_lastFrame.
Header
.Type == TlsContentType.Handshake || _lastFrame.
Header
.Type == TlsContentType.ChangeCipherSpec))
344
payload = TlsFrameHelper.CreateAlertFrame(_lastFrame.
Header
.Version, TlsAlertDescription.ProtocolVersion);
363
if (_lastFrame.
Header
.Type == TlsContentType.Alert && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify &&
421
switch (_lastFrame.
Header
.Type)
431
if (!_isRenego && _buffer.EncryptedReadOnlySpan[_lastFrame.
Header
.Version == SslProtocols.Ssl2 ? HandshakeTypeOffsetSsl2 : HandshakeTypeOffsetTls] == (byte)TlsHandshakeType.ClientHello &&
933
if (_lastFrame.
Header
.Type != TlsContentType.AppData)
1024
if (_lastFrame.
Header
.Length < 0)
1030
return _lastFrame.
Header
.Length;
System\Net\Security\TlsFrameHelper.cs (16)
130
if (
Header
.Type == TlsContentType.Handshake)
134
return $"{
Header
.Version}:{HandshakeType}[{
Header
.Length}] TargetName='{TargetName}' SupportedVersion='{SupportedVersions}' ApplicationProtocols='{ApplicationProtocols}'";
138
return $"{
Header
.Version}:{HandshakeType}[{
Header
.Length}] SupportedVersion='{SupportedVersions}' ApplicationProtocols='{ApplicationProtocols}'";
142
return $"{
Header
.Version}:{HandshakeType}[{
Header
.Length}] SupportedVersion='{SupportedVersions}'";
147
return $"{
Header
.Version}:{
Header
.Type}[{
Header
.Length}]";
239
info.SupportedVersions = info.
Header
.Version;
241
if (info.
Header
.Type == TlsContentType.Alert)
254
if (info.
Header
.Type != TlsContentType.Handshake || frame.Length <= HandshakeTypeOffset)
261
if (info.
Header
.Version == SslProtocols.Ssl2)
274
bool isComplete = frame.Length >= info.
Header
.Length;
277
if (((int)info.
Header
.Version >= (int)SslProtocols.Tls) &&