3 writes to Header
System.Net.Security (3)
System\Net\Security\SslStream.IO.cs (2)
1020TlsFrameHelper.TryGetFrameHeader(_buffer.EncryptedReadOnlySpan, ref _lastFrame.Header); 1116if (!TlsFrameHelper.TryGetFrameHeader(buffer, ref _lastFrame.Header))
System\Net\Security\TlsFrameHelper.cs (1)
235bool gotHeader = TryGetFrameHeader(frame, ref info.Header);
27 references to Header
System.Net.Security (27)
System\Net\Security\SslStream.IO.cs (11)
366else if (token.Failed && (_lastFrame.Header.Type == TlsContentType.Handshake || _lastFrame.Header.Type == TlsContentType.ChangeCipherSpec)) 369payload = TlsFrameHelper.CreateAlertFrame(_lastFrame.Header.Version, TlsAlertDescription.ProtocolVersion); 388if (_lastFrame.Header.Type == TlsContentType.Alert && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify && 446switch (_lastFrame.Header.Type) 456if (!_isRenego && _buffer.EncryptedReadOnlySpan[_lastFrame.Header.Version == SslProtocols.Ssl2 ? HandshakeTypeOffsetSsl2 : HandshakeTypeOffsetTls] == (byte)TlsHandshakeType.ClientHello && 526bool isClientHello = _lastFrame.Header.Type == TlsContentType.Handshake && 527_buffer.EncryptedReadOnlySpan[_lastFrame.Header.Version == SslProtocols.Ssl2 ? HandshakeTypeOffsetSsl2 : HandshakeTypeOffsetTls] == (byte)TlsHandshakeType.ClientHello; 1021if (_lastFrame.Header.Type != TlsContentType.AppData) 1121if (_lastFrame.Header.Length < 0) 1127return _lastFrame.Header.Length;
System\Net\Security\TlsFrameHelper.cs (16)
129if (Header.Type == TlsContentType.Handshake) 133return $"{Header.Version}:{HandshakeType}[{Header.Length}] TargetName='{TargetName}' SupportedVersion='{SupportedVersions}' ApplicationProtocols='{ApplicationProtocols}'"; 137return $"{Header.Version}:{HandshakeType}[{Header.Length}] SupportedVersion='{SupportedVersions}' ApplicationProtocols='{ApplicationProtocols}'"; 141return $"{Header.Version}:{HandshakeType}[{Header.Length}] SupportedVersion='{SupportedVersions}'"; 146return $"{Header.Version}:{Header.Type}[{Header.Length}]"; 238info.SupportedVersions = info.Header.Version; 240if (info.Header.Type == TlsContentType.Alert) 253if (info.Header.Type != TlsContentType.Handshake || frame.Length <= HandshakeTypeOffset) 260if (info.Header.Version == SslProtocols.Ssl2) 273bool isComplete = frame.Length >= info.Header.Length; 276if (((int)info.Header.Version >= (int)SslProtocols.Tls) &&