3 writes to Header
System.Net.Security (3)
System\Net\Security\SslStream.IO.cs (2)
1016TlsFrameHelper.TryGetFrameHeader(_buffer.EncryptedReadOnlySpan, ref _lastFrame.Header); 1112if (!TlsFrameHelper.TryGetFrameHeader(buffer, ref _lastFrame.Header))
System\Net\Security\TlsFrameHelper.cs (1)
235if (!TryGetFrameHeader(frame, ref info.Header))
27 references to Header
System.Net.Security (27)
System\Net\Security\SslStream.IO.cs (10)
371else if (token.Failed && (_lastFrame.Header.Type == TlsContentType.Handshake || _lastFrame.Header.Type == TlsContentType.ChangeCipherSpec)) 374payload = TlsFrameHelper.CreateAlertFrame(_lastFrame.Header.Version, TlsAlertDescription.ProtocolVersion); 393if (_lastFrame.Header.Type == TlsContentType.Alert && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify && 459switch (_lastFrame.Header.Type) 469if (!_isRenego && _buffer.EncryptedReadOnlySpan[_lastFrame.Header.Version == SslProtocols.Ssl2 ? HandshakeTypeOffsetSsl2 : HandshakeTypeOffsetTls] == (byte)TlsHandshakeType.ClientHello && 539bool isClientHello = _lastFrame.Header.Type == TlsContentType.Handshake && 540_buffer.EncryptedReadOnlySpan[_lastFrame.Header.Version == SslProtocols.Ssl2 ? HandshakeTypeOffsetSsl2 : HandshakeTypeOffsetTls] == (byte)TlsHandshakeType.ClientHello; 1017if (_lastFrame.Header.Type != TlsContentType.AppData) 1118return _lastFrame.Header.Length;
System\Net\Security\TlsFrameHelper.cs (16)
128if (Header.Type == TlsContentType.Handshake) 132return $"{Header.Version}:{HandshakeType}[{Header.Length}] TargetName='{TargetName}' SupportedVersion='{SupportedVersions}' ApplicationProtocols='{ApplicationProtocols}'"; 136return $"{Header.Version}:{HandshakeType}[{Header.Length}] SupportedVersion='{SupportedVersions}' ApplicationProtocols='{ApplicationProtocols}'"; 140return $"{Header.Version}:{HandshakeType}[{Header.Length}] SupportedVersion='{SupportedVersions}'"; 145return $"{Header.Version}:{Header.Type}[{Header.Length}]"; 241info.SupportedVersions = info.Header.Version; 243if (info.Header.Type == TlsContentType.Alert) 256if (info.Header.Type != TlsContentType.Handshake || frame.Length <= HandshakeTypeOffset) 263if (info.Header.Version == SslProtocols.Ssl2) 276bool isComplete = frame.Length >= info.Header.Length; 279if (((int)info.Header.Version >= (int)SslProtocols.Tls) &&
System\Net\Security\TlsSession.cs (1)
1605frameLength = frameInfo.Header.Length;