2 writes to _lastFrame
System.Net.Security (2)
System\Net\Security\SslStream.IO.cs (2)
431if (TlsFrameHelper.TryGetFrameInfo(_buffer.EncryptedReadOnlySpan, ref _lastFrame)) 464if (!TlsFrameHelper.TryGetFrameInfo(_buffer.EncryptedReadOnlySpan, ref _lastFrame, options))
23 references to _lastFrame
System.Net.Security (23)
System\Net\Security\SslStream.IO.cs (22)
348else if (token.Failed && (_lastFrame.Header.Type == TlsContentType.Handshake || _lastFrame.Header.Type == TlsContentType.ChangeCipherSpec)) 351payload = TlsFrameHelper.CreateAlertFrame(_lastFrame.Header.Version, TlsAlertDescription.ProtocolVersion); 370if (_lastFrame.Header.Type == TlsContentType.Alert && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify && 374throw new AuthenticationException(SR.Format(SR.net_auth_tls_alert, _lastFrame.AlertDescription.ToString()), token.GetException()); 428switch (_lastFrame.Header.Type) 433if (NetEventSource.Log.IsEnabled() && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify) NetEventSource.Error(this, $"Received TLS alert {_lastFrame.AlertDescription}"); 438if (!_isRenego && _buffer.EncryptedReadOnlySpan[_lastFrame.Header.Version == SslProtocols.Ssl2 ? HandshakeTypeOffsetSsl2 : HandshakeTypeOffsetTls] == (byte)TlsHandshakeType.ClientHello && 469if (_lastFrame.HandshakeType == TlsHandshakeType.ClientHello) 472if (_lastFrame.TargetName != null) 474_sslAuthenticationOptions.TargetHost = _lastFrame.TargetName; 480await _sslAuthenticationOptions.ServerOptionDelegate(this, new SslClientHelloInfo(_sslAuthenticationOptions.TargetHost, _lastFrame.SupportedVersions), 488NetEventSource.Log.ReceivedFrame(this, _lastFrame); 508bool isClientHello = _lastFrame.Header.Type == TlsContentType.Handshake && 509_buffer.EncryptedReadOnlySpan[_lastFrame.Header.Version == SslProtocols.Ssl2 ? HandshakeTypeOffsetSsl2 : HandshakeTypeOffsetTls] == (byte)TlsHandshakeType.ClientHello; 977TlsFrameHelper.TryGetFrameHeader(_buffer.EncryptedReadOnlySpan, ref _lastFrame.Header); 978if (_lastFrame.Header.Type != TlsContentType.AppData) 1073if (!TlsFrameHelper.TryGetFrameHeader(buffer, ref _lastFrame.Header)) 1078if (_lastFrame.Header.Length < 0) 1084return _lastFrame.Header.Length;
System\Net\Security\SslStream.Protocol.cs (1)
860_lastFrame.RawApplicationProtocols);