Class TlsFrameHelper
Inheritance
System.Object
TlsFrameHelper
Assembly: Yarp.ReverseProxy.dll
Syntax
public static class TlsFrameHelper : object
Fields
|
Improve this Doc
View Source
Declaration
public const int HeaderSize = null
Field Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
CreateAlertFrame(SslProtocols, TlsAlertDescription)
Declaration
public static byte[] CreateAlertFrame(SslProtocols version, TlsAlertDescription reason)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
GetFrameSize(ReadOnlySpan<Byte>)
Declaration
public static int GetFrameSize(ReadOnlySpan<byte> frame)
Parameters
Type |
Name |
Description |
ReadOnlySpan<System.Byte> |
frame |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetServerName(ReadOnlySpan<Byte>)
Declaration
public static string? GetServerName(ReadOnlySpan<byte> frame)
Parameters
Type |
Name |
Description |
ReadOnlySpan<System.Byte> |
frame |
|
Returns
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
TryGetAlertInfo(ReadOnlySpan<Byte>, ref TlsAlertLevel, ref TlsAlertDescription)
Declaration
public static bool TryGetAlertInfo(ReadOnlySpan<byte> frame, ref TlsAlertLevel level, ref TlsAlertDescription description)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public static bool TryGetFrameHeader(ReadOnlySpan<byte> frame, ref TlsFrameHeader header)
Parameters
Type |
Name |
Description |
ReadOnlySpan<System.Byte> |
frame |
|
TlsFrameHeader |
header |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryGetFrameInfo(ReadOnlySpan<Byte>, ref TlsFrameHelper.TlsFrameInfo, TlsFrameHelper.ProcessingOptions, TlsFrameHelper.HelloExtensionCallback)
Declaration
public static bool TryGetFrameInfo(ReadOnlySpan<byte> frame, ref TlsFrameHelper.TlsFrameInfo info, TlsFrameHelper.ProcessingOptions options = default(TlsFrameHelper.ProcessingOptions), TlsFrameHelper.HelloExtensionCallback callback = null)
Parameters
Returns
Type |
Description |
System.Boolean |
|