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

◆ GetOutgoingBlob() [7/7]

string System.Net.NTAuthentication.GetOutgoingBlob ( string incomingBlob)
inlinepackage

Definition at line 100 of file NTAuthentication.cs.

101 {
102 byte[] array = null;
103 if (incomingBlob != null && incomingBlob.Length > 0)
104 {
105 array = Convert.FromBase64String(incomingBlob);
106 }
107 byte[] array2 = null;
108 if ((IsValidContext || IsCompleted) && array == null)
109 {
110 _isCompleted = true;
111 }
112 else
113 {
114 array2 = GetOutgoingBlob(array, throwOnError: true, out var _);
115 }
116 string result = null;
117 if (array2 != null && array2.Length != 0)
118 {
119 result = Convert.ToBase64String(array2);
120 }
121 if (IsCompleted)
122 {
123 CloseContext();
124 }
125 return result;
126 }
string GetOutgoingBlob(string incomingBlob)

References System.Net.NTAuthentication._isCompleted, System.array, System.Net.NTAuthentication.CloseContext(), System.Convert.FromBase64String(), System.Net.NTAuthentication.GetOutgoingBlob(), System.Net.NTAuthentication.IsCompleted, System.Net.NTAuthentication.IsValidContext, and System.Convert.ToBase64String().