2 writes to _lastFrame
System.Net.Security (2)
System\Net\Security\SslStream.IO.cs (2)
449
if (TlsFrameHelper.TryGetFrameInfo(_buffer.EncryptedReadOnlySpan, ref
_lastFrame
))
471
if (!TlsFrameHelper.TryGetFrameInfo(_buffer.EncryptedReadOnlySpan, ref
_lastFrame
, options))
21 references to _lastFrame
System.Net.Security (21)
System\Net\Security\SslStream.IO.cs (20)
366
else if (token.Failed && (
_lastFrame
.Header.Type == TlsContentType.Handshake ||
_lastFrame
.Header.Type == TlsContentType.ChangeCipherSpec))
369
payload = TlsFrameHelper.CreateAlertFrame(
_lastFrame
.Header.Version, TlsAlertDescription.ProtocolVersion);
388
if (
_lastFrame
.Header.Type == TlsContentType.Alert &&
_lastFrame
.AlertDescription != TlsAlertDescription.CloseNotify &&
392
throw new AuthenticationException(SR.Format(SR.net_auth_tls_alert,
_lastFrame
.AlertDescription.ToString()), token.GetException());
446
switch (
_lastFrame
.Header.Type)
451
if (NetEventSource.Log.IsEnabled() &&
_lastFrame
.AlertDescription != TlsAlertDescription.CloseNotify) NetEventSource.Error(this, $"Received TLS alert {
_lastFrame
.AlertDescription}");
456
if (!_isRenego && _buffer.EncryptedReadOnlySpan[
_lastFrame
.Header.Version == SslProtocols.Ssl2 ? HandshakeTypeOffsetSsl2 : HandshakeTypeOffsetTls] == (byte)TlsHandshakeType.ClientHello &&
476
if (
_lastFrame
.HandshakeType == TlsHandshakeType.ClientHello)
479
if (
_lastFrame
.TargetName != null)
481
_sslAuthenticationOptions.TargetHost =
_lastFrame
.TargetName;
487
await _sslAuthenticationOptions.ServerOptionDelegate(this, new SslClientHelloInfo(_sslAuthenticationOptions.TargetHost,
_lastFrame
.SupportedVersions),
495
NetEventSource.Log.ReceivedFrame(this,
_lastFrame
);
965
TlsFrameHelper.TryGetFrameHeader(_buffer.EncryptedReadOnlySpan, ref
_lastFrame
.Header);
966
if (
_lastFrame
.Header.Type != TlsContentType.AppData)
1061
if (!TlsFrameHelper.TryGetFrameHeader(buffer, ref
_lastFrame
.Header))
1066
if (
_lastFrame
.Header.Length < 0)
1072
return
_lastFrame
.Header.Length;
System\Net\Security\SslStream.Protocol.cs (1)
890
_lastFrame
.RawApplicationProtocols);