terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ GetOutgoingBlob() [2/3]

byte[] System.Net.NTAuthentication.GetOutgoingBlob ( byte[] incomingBlob,
bool throwOnError,
[Out] SecurityStatusPal statusCode )
inlinepackage

Definition at line 260 of file NTAuthentication.cs.

261 {
262 int num = 1;
263 if (num == 0)
264 {
265 }
266 bool isEnabled = NetEventSource.IsEnabled;
267 if (num == 0)
268 {
269 }
270 NetEventSource.Enter(this, incomingBlob, "GetOutgoingBlob");
271 global::System.Security.Authentication.ExtendedProtection.ChannelBinding channelBinding = this._channelBinding;
272 if (incomingBlob != null)
273 {
274 if (channelBinding == null)
275 {
276 goto IL_003C;
277 }
278 global::System.Security.Authentication.ExtendedProtection.ChannelBinding channelBinding2 = this._channelBinding;
279 }
280 global::System.Security.Authentication.ExtendedProtection.ChannelBinding channelBinding3 = this._channelBinding;
281 IL_003C:
282 int tokenSize = this._tokenSize;
283 global::System.Net.Security.SafeDeleteContext securityContext = this._securityContext;
284 ContextFlagsPal requestedContextFlags = this._requestedContextFlags;
285 SecurityStatusPal securityStatusPal;
288 bool isEnabled2 = NetEventSource.IsEnabled;
289 if ("SSPIWrapper.AcceptSecurityContext() returns statusCode:0x{0:x8} ({1})" == null)
290 {
291 }
293 NetEventSource.Info(this, formattableString, "GetOutgoingBlob");
294 string spn = this._spn;
295 ContextFlagsPal requestedContextFlags2 = this._requestedContextFlags;
296 SecurityStatusPal securityStatusPal2;
299 if ("SSPIWrapper.AcceptSecurityContext() returns statusCode:0x{0:x8} ({1})" == null)
300 {
301 }
302 bool isEnabled3 = NetEventSource.IsEnabled;
303 if ("SSPIWrapper.InitializeSecurityContext() returns statusCode:0x{0:x8} ({1})" == null)
304 {
305 }
307 NetEventSource.Info(this, formattableString2, "GetOutgoingBlob");
308 SecurityStatusPal securityStatusPal3;
310 statusCode.Exception = "GetOutgoingBlob";
311 if ("GetOutgoingBlob" == null)
312 {
313 }
314 bool isEnabled4 = NetEventSource.IsEnabled;
315 if ("SSPIWrapper.CompleteAuthToken() returns statusCode:0x{0:x8} ({1})" == null)
316 {
317 }
319 NetEventSource.Info(this, formattableString3, "GetOutgoingBlob");
320 long num2 = 0L;
321 long num3;
322 int num4;
323 if (securityContext == null)
324 {
325 global::System.Net.Security.SafeFreeCredentials credentialsHandle = this._credentialsHandle;
326 if (credentialsHandle != null)
327 {
328 credentialsHandle.Dispose();
329 if (num2 == 0L)
330 {
331 goto IL_0133;
332 }
333 num3 = 0L;
334 num4 = 10;
335 while (securityContext == null)
336 {
337 }
338 }
339 }
340 if (num3 != 0L)
341 {
342 throw new OutOfMemoryException();
343 }
344 IL_0133:
345 if (num4 == 0)
346 {
347 if (securityContext == null)
348 {
349 global::System.Net.Security.SafeFreeCredentials credentialsHandle2 = this._credentialsHandle;
350 if (credentialsHandle2 != null)
351 {
352 global::System.Net.Security.SSPIHandleCache.CacheCredential(credentialsHandle2);
353 }
354 }
355 this.CloseContext();
356 int num5 = 1;
357 this._isCompleted = num5 != 0;
358 if (num5 == 0)
359 {
360 }
361 bool isEnabled5 = NetEventSource.IsEnabled;
363 NetEventSource.Exit(this, formattableString4, "GetOutgoingBlob");
364 bool isEnabled6 = NetEventSource.IsEnabled;
365 bool isEnabled7 = NetEventSource.IsEnabled;
367 NetEventSource.Info(this, formattableString5, "GetOutgoingBlob");
368 bool isEnabled8 = NetEventSource.IsEnabled;
369 bool isEnabled9 = NetEventSource.IsEnabled;
370 bool isCompleted = this._isCompleted;
372 NetEventSource.Exit(this, formattableString6, "GetOutgoingBlob");
373 }
374 throw new ArrayTypeMismatchException();
375 }
class f__AnonymousType0<< Count > j__TPar
global::System.Net.Security.SafeFreeCredentials _credentialsHandle
global::System.Net.Security.SafeDeleteContext _securityContext
ContextFlagsPal _requestedContextFlags
global::System.Security.Authentication.ExtendedProtection.ChannelBinding _channelBinding

References System.Net.NTAuthentication._channelBinding, System.Net.NTAuthentication._credentialsHandle, System.Net.NTAuthentication._isCompleted, System.Net.NTAuthentication._requestedContextFlags, System.Net.NTAuthentication._securityContext, System.Net.NTAuthentication._spn, System.Net.NTAuthentication._tokenSize, System.Net.NTAuthentication.CloseContext(), System.Net.NetEventSource.Enter(), System.Net.NetEventSource.Exit(), System.Net.NetEventSource.Info(), System.Net.NetEventSource.IsEnabled, j__TPar, and System.L.