9 references to TlsAlertDescription
System.Net.Security (9)
System\Net\Security\SslStream.IO.cs (3)
369payload = TlsFrameHelper.CreateAlertFrame(_lastFrame.Header.Version, TlsAlertDescription.ProtocolVersion); 388if (_lastFrame.Header.Type == TlsContentType.Alert && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify && 451if (NetEventSource.Log.IsEnabled() && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify) NetEventSource.Error(this, $"Received TLS alert {_lastFrame.AlertDescription}");
System\Net\Security\TlsFrameHelper.cs (6)
124public TlsAlertDescription AlertDescription; 243TlsAlertDescription description = default; 303public static bool TryGetAlertInfo(ReadOnlySpan<byte> frame, ref TlsAlertLevel level, ref TlsAlertDescription description) 311description = (TlsAlertDescription)frame[6]; 331public static byte[] CreateAlertFrame(SslProtocols version, TlsAlertDescription reason) 333if (reason == TlsAlertDescription.ProtocolVersion)