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