Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ProtocolToken.cs
Go to the documentation of this file.
1namespace System.Net.Security;
2
3internal sealed class ProtocolToken
4{
6
7 internal byte[] Payload;
8
9 internal int Size;
10
11 internal bool Failed
12 {
13 get
14 {
16 {
17 return Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded;
18 }
19 return false;
20 }
21 }
22
23 internal bool Done => Status.ErrorCode == SecurityStatusPalErrorCode.OK;
24
25 internal ProtocolToken(byte[] data, SecurityStatusPal status)
26 {
27 Status = status;
28 Payload = data;
29 Size = ((data != null) ? data.Length : 0);
30 }
31
33 {
34 if (!Done)
35 {
37 }
38 return null;
39 }
40}
ProtocolToken(byte[] data, SecurityStatusPal status)
static Exception GetException(SecurityStatusPal status)
readonly System.Net.SecurityStatusPalErrorCode ErrorCode