2 writes to _lastFrame
System.Net.Security (2)
System\Net\Security\SslStream.IO.cs (2)
439
if (TlsFrameHelper.TryGetFrameInfo(_buffer.EncryptedReadOnlySpan, ref
_lastFrame
))
472
if (!TlsFrameHelper.TryGetFrameInfo(_buffer.EncryptedReadOnlySpan, ref
_lastFrame
, options))
23 references to _lastFrame
System.Net.Security (23)
System\Net\Security\SslStream.IO.cs (22)
348
else if (token.Failed && (
_lastFrame
.Header.Type == TlsContentType.Handshake ||
_lastFrame
.Header.Type == TlsContentType.ChangeCipherSpec))
351
payload = TlsFrameHelper.CreateAlertFrame(
_lastFrame
.Header.Version, TlsAlertDescription.ProtocolVersion);
370
if (
_lastFrame
.Header.Type == TlsContentType.Alert &&
_lastFrame
.AlertDescription != TlsAlertDescription.CloseNotify &&
374
throw new AuthenticationException(SR.Format(SR.net_auth_tls_alert,
_lastFrame
.AlertDescription.ToString()), token.GetException());
436
switch (
_lastFrame
.Header.Type)
441
if (NetEventSource.Log.IsEnabled() &&
_lastFrame
.AlertDescription != TlsAlertDescription.CloseNotify) NetEventSource.Error(this, $"Received TLS alert {
_lastFrame
.AlertDescription}");
446
if (!_isRenego && _buffer.EncryptedReadOnlySpan[
_lastFrame
.Header.Version == SslProtocols.Ssl2 ? HandshakeTypeOffsetSsl2 : HandshakeTypeOffsetTls] == (byte)TlsHandshakeType.ClientHello &&
477
if (
_lastFrame
.HandshakeType == TlsHandshakeType.ClientHello)
480
if (
_lastFrame
.TargetName != null)
482
_sslAuthenticationOptions.TargetHost =
_lastFrame
.TargetName;
488
await _sslAuthenticationOptions.ServerOptionDelegate(this, new SslClientHelloInfo(_sslAuthenticationOptions.TargetHost,
_lastFrame
.SupportedVersions),
496
NetEventSource.Log.ReceivedFrame(this,
_lastFrame
);
516
bool isClientHello =
_lastFrame
.Header.Type == TlsContentType.Handshake &&
517
_buffer.EncryptedReadOnlySpan[
_lastFrame
.Header.Version == SslProtocols.Ssl2 ? HandshakeTypeOffsetSsl2 : HandshakeTypeOffsetTls] == (byte)TlsHandshakeType.ClientHello;
987
TlsFrameHelper.TryGetFrameHeader(_buffer.EncryptedReadOnlySpan, ref
_lastFrame
.Header);
988
if (
_lastFrame
.Header.Type != TlsContentType.AppData)
1083
if (!TlsFrameHelper.TryGetFrameHeader(buffer, ref
_lastFrame
.Header))
1088
if (
_lastFrame
.Header.Length < 0)
1094
return
_lastFrame
.Header.Length;
System\Net\Security\SslStream.Protocol.cs (1)
860
_lastFrame
.RawApplicationProtocols);