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