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