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; 246TlsAlertDescription description = default; 306public static bool TryGetAlertInfo(ReadOnlySpan<byte> frame, ref TlsAlertLevel level, ref TlsAlertDescription description) 314description = (TlsAlertDescription)frame[6]; 334public static byte[] CreateAlertFrame(SslProtocols version, TlsAlertDescription reason) 336if (reason == TlsAlertDescription.ProtocolVersion)