9 references to TlsAlertDescription
System.Net.Security (9)
System\Net\Security\SslStream.IO.cs (3)
374payload = TlsFrameHelper.CreateAlertFrame(_lastFrame.Header.Version, TlsAlertDescription.ProtocolVersion); 393if (_lastFrame.Header.Type == TlsContentType.Alert && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify && 464if (NetEventSource.Log.IsEnabled() && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify) NetEventSource.Error(this, $"Received TLS alert {_lastFrame.AlertDescription}");
System\Net\Security\TlsFrameHelper.cs (6)
123public TlsAlertDescription AlertDescription; 247TlsAlertDescription description = default; 307public static bool TryGetAlertInfo(ReadOnlySpan<byte> frame, ref TlsAlertLevel level, ref TlsAlertDescription description) 315description = (TlsAlertDescription)frame[6]; 335public static byte[] CreateAlertFrame(SslProtocols version, TlsAlertDescription reason) 337if (reason == TlsAlertDescription.ProtocolVersion)