9 references to TlsAlertDescription
System.Net.Security (9)
System\Net\Security\SslStream.IO.cs (3)
344payload = TlsFrameHelper.CreateAlertFrame(_lastFrame.Header.Version, TlsAlertDescription.ProtocolVersion); 363if (_lastFrame.Header.Type == TlsContentType.Alert && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify && 426if (NetEventSource.Log.IsEnabled() && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify) NetEventSource.Error(this, $"Received TLS alert {_lastFrame.AlertDescription}");
System\Net\Security\TlsFrameHelper.cs (6)
125public TlsAlertDescription AlertDescription; 244TlsAlertDescription description = default; 304public static bool TryGetAlertInfo(ReadOnlySpan<byte> frame, ref TlsAlertLevel level, ref TlsAlertDescription description) 312description = (TlsAlertDescription)frame[6]; 332public static byte[] CreateAlertFrame(SslProtocols version, TlsAlertDescription reason) 334if (reason == TlsAlertDescription.ProtocolVersion)