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

◆ TryParseServerHello()

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

Definition at line 236 of file TlsFrameHelper.cs.

237 {
238 ReadOnlySpan<byte> bytes = SkipBytes(serverHello, 34);
240 bytes = SkipBytes(bytes, 3);
241 if (bytes.IsEmpty)
242 {
243 return false;
244 }
246 bytes = SkipBytes(bytes, 2);
247 if (num != bytes.Length)
248 {
249 return false;
250 }
251 return TryParseHelloExtensions(bytes, ref info, options, callback);
252 }
static ushort ReadUInt16BigEndian(ReadOnlySpan< byte > source)
static ReadOnlySpan< byte > SkipOpaqueType1(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(), and System.Net.Security.TlsFrameHelper.TryParseHelloExtensions().

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