2 writes to _lastFrame
System.Net.Security (2)
System\Net\Security\SslStream.IO.cs (2)
481if (TlsFrameHelper.TryGetFrameInfo(_buffer.EncryptedReadOnlySpan, ref _lastFrame)) 517if (!TlsFrameHelper.TryGetFrameInfo(_buffer.EncryptedReadOnlySpan, ref _lastFrame, options))
22 references to _lastFrame
System.Net.Security (22)
System\Net\Security\SslStream.IO.cs (20)
386else if (token.Failed && (_lastFrame.Header.Type == TlsContentType.Handshake || _lastFrame.Header.Type == TlsContentType.ChangeCipherSpec)) 389payload = TlsFrameHelper.CreateAlertFrame(_lastFrame.Header.Version, TlsAlertDescription.ProtocolVersion); 408if (_lastFrame.Header.Type == TlsContentType.Alert && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify && 412throw new AuthenticationException(SR.Format(SR.net_auth_tls_alert, _lastFrame.AlertDescription.ToString()), token.GetException()); 474int handshakeTypeOffset = _lastFrame.Header.Version == SslProtocols.Ssl2 ? HandshakeTypeOffsetSsl2 : HandshakeTypeOffsetTls; 478switch (_lastFrame.Header.Type) 483if (NetEventSource.Log.IsEnabled() && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify) NetEventSource.Error(this, $"Received TLS alert {_lastFrame.AlertDescription}"); 522if (_lastFrame.HandshakeType == TlsHandshakeType.ClientHello) 525if (_lastFrame.TargetName != null) 527_sslAuthenticationOptions.TargetHost = _lastFrame.TargetName; 533await _sslAuthenticationOptions.ServerOptionDelegate(this, new SslClientHelloInfo(_sslAuthenticationOptions.TargetHost, _lastFrame.SupportedVersions), 541NetEventSource.Log.ReceivedFrame(this, _lastFrame); 560bool isClientHello = _lastFrame.Header.Type == TlsContentType.Handshake && 1036TlsFrameHelper.TryGetFrameHeader(_buffer.EncryptedReadOnlySpan, ref _lastFrame.Header); 1037if (_lastFrame.Header.Type != TlsContentType.AppData) 1132if (!TlsFrameHelper.TryGetFrameHeader(buffer, ref _lastFrame.Header)) 1138return _lastFrame.Header.Length;
System\Net\Security\SslStream.Protocol.cs (1)
889_lastFrame.RawApplicationProtocols);
System\Net\Security\SslStream.TlsSessionWedge.cs (1)
87_lastFrame.RawApplicationProtocols);