Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryParseClientHello()

static bool System.Net.Security.TlsFrameHelper.TryParseClientHello ( ReadOnlySpan< byte > clientHello,
ref TlsFrameInfo info,
ProcessingOptions options,
HelloExtensionCallback callback )
inlinestaticprivate

Definition at line 217 of file TlsFrameHelper.cs.

218 {
219 ReadOnlySpan<byte> bytes = SkipBytes(clientHello, 34);
223 if (bytes.IsEmpty)
224 {
225 return false;
226 }
228 bytes = SkipBytes(bytes, 2);
229 if (num != bytes.Length)
230 {
231 return false;
232 }
233 return TryParseHelloExtensions(bytes, ref info, options, callback);
234 }
static ushort ReadUInt16BigEndian(ReadOnlySpan< byte > source)
static ReadOnlySpan< byte > SkipOpaqueType1(ReadOnlySpan< byte > bytes)
static ReadOnlySpan< byte > SkipOpaqueType2(ReadOnlySpan< byte > bytes)
static ReadOnlySpan< byte > SkipBytes(ReadOnlySpan< byte > bytes, int numberOfBytesToSkip)
static bool TryParseHelloExtensions(ReadOnlySpan< byte > extensions, ref TlsFrameInfo info, ProcessingOptions options, HelloExtensionCallback callback)

References System.bytes, System.info, System.options, System.Buffers.Binary.BinaryPrimitives.ReadUInt16BigEndian(), System.Net.Security.TlsFrameHelper.SkipBytes(), System.Net.Security.TlsFrameHelper.SkipOpaqueType1(), System.Net.Security.TlsFrameHelper.SkipOpaqueType2(), and System.Net.Security.TlsFrameHelper.TryParseHelloExtensions().

Referenced by System.Net.Security.TlsFrameHelper.TryParseHelloFrame().