2 writes to _lastFrame
System.Net.Security (2)
System\Net\Security\SslStream.IO.cs (2)
424if (TlsFrameHelper.TryGetFrameInfo(_buffer.EncryptedReadOnlySpan, ref _lastFrame)) 446if (!TlsFrameHelper.TryGetFrameInfo(_buffer.EncryptedReadOnlySpan, ref _lastFrame, options))
21 references to _lastFrame
System.Net.Security (21)
System\Net\Security\SslStream.IO.cs (20)
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 && 367throw new AuthenticationException(SR.Format(SR.net_auth_tls_alert, _lastFrame.AlertDescription.ToString()), token.GetException()); 421switch (_lastFrame.Header.Type) 426if (NetEventSource.Log.IsEnabled() && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify) NetEventSource.Error(this, $"Received TLS alert {_lastFrame.AlertDescription}"); 431if (!_isRenego && _buffer.EncryptedReadOnlySpan[_lastFrame.Header.Version == SslProtocols.Ssl2 ? HandshakeTypeOffsetSsl2 : HandshakeTypeOffsetTls] == (byte)TlsHandshakeType.ClientHello && 451if (_lastFrame.HandshakeType == TlsHandshakeType.ClientHello) 454if (_lastFrame.TargetName != null) 456_sslAuthenticationOptions.TargetHost = _lastFrame.TargetName; 462await _sslAuthenticationOptions.ServerOptionDelegate(this, new SslClientHelloInfo(_sslAuthenticationOptions.TargetHost, _lastFrame.SupportedVersions), 470NetEventSource.Log.ReceivedFrame(this, _lastFrame); 932TlsFrameHelper.TryGetFrameHeader(_buffer.EncryptedReadOnlySpan, ref _lastFrame.Header); 933if (_lastFrame.Header.Type != TlsContentType.AppData) 1019if (!TlsFrameHelper.TryGetFrameHeader(buffer, ref _lastFrame.Header)) 1024if (_lastFrame.Header.Length < 0) 1030return _lastFrame.Header.Length;
System\Net\Security\SslStream.Protocol.cs (1)
889_lastFrame.RawApplicationProtocols);