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
SafeFreeNegoCredentials.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x02000318 RID: 792
8 {
9 // Token: 0x170004A7 RID: 1191
10 // (get) Token: 0x06001497 RID: 5271 RVA: 0x0003E8A4 File Offset: 0x0003CAA4
12 {
13 get
14 {
15 return this._credential;
16 }
17 }
18
19 // Token: 0x170004A8 RID: 1192
20 // (get) Token: 0x06001498 RID: 5272 RVA: 0x0003E8B8 File Offset: 0x0003CAB8
21 public bool IsNtlmOnly
22 {
23 get
24 {
25 return this._isNtlmOnly;
26 }
27 }
28
29 // Token: 0x170004A9 RID: 1193
30 // (get) Token: 0x06001499 RID: 5273 RVA: 0x0003E8CC File Offset: 0x0003CACC
31 public string UserName
32 {
33 get
34 {
35 return this._userName;
36 }
37 }
38
39 // Token: 0x170004AA RID: 1194
40 // (get) Token: 0x0600149A RID: 5274 RVA: 0x0003E8E0 File Offset: 0x0003CAE0
41 public bool IsDefault
42 {
43 get
44 {
45 return this._isDefault;
46 }
47 }
48
49 // Token: 0x0600149B RID: 5275 RVA: 0x0003E8F4 File Offset: 0x0003CAF4
50 public SafeFreeNegoCredentials(bool isNtlmOnly, string username, string password, string domain)
51 {
52 int num = 1;
53 base..ctor(1073741824, num != 0);
54 int num2 = 92;
55 int num3 = username.IndexOf((char)num2);
56 int num4 = 92;
57 int num5 = username.IndexOf((char)num4, 1073741824);
58 bool flag = string.IsNullOrEmpty(domain);
59 long num6 = 0L;
60 string text = username.Substring((int)num6, num3);
61 string text2 = username.Substring(1073741824);
62 string text3;
63 if (text != null)
64 {
65 text3 = text.Trim();
66 }
67 string text4 = text2.Trim();
68 int num7 = 64;
69 int num8 = text4.IndexOf((char)num7);
70 bool flag2 = string.IsNullOrEmpty(text3);
71 string text5 = text4 + "@" + text3;
72 this._isNtlmOnly = 1073741824 != 0;
74 bool flag3 = string.IsNullOrEmpty(text5);
75 }
76
77 // Token: 0x170004AB RID: 1195
78 // (get) Token: 0x0600149C RID: 5276 RVA: 0x0003E9C8 File Offset: 0x0003CBC8
79 public override bool IsInvalid
80 {
81 get
82 {
83 /*
84An exception occurred when decompiling this method (0600149C)
85
86ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.Security.SafeFreeNegoCredentials::get_IsInvalid()
87
88 ---> System.Exception: Basic block has to end with unconditional control flow.
89{
90 Block_0:
91 stloc:SafeGssCredHandle(var_0_06, ldfld:SafeGssCredHandle(SafeFreeNegoCredentials::_credential, ldloc:SafeFreeNegoCredentials(this)))
92}
93
94 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
95 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
96 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
97 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
98 --- End of inner exception stack trace ---
99 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
100 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
101*/;
102 }
103 }
104
105 // Token: 0x0600149D RID: 5277 RVA: 0x0003E9DC File Offset: 0x0003CBDC
106 protected override bool ReleaseHandle()
107 {
108 this._credential.DangerousRelease();
109 return true;
110 }
111
112 // Token: 0x04001135 RID: 4405
114
115 // Token: 0x04001136 RID: 4406
116 private readonly bool _isNtlmOnly;
117
118 // Token: 0x04001137 RID: 4407
119 private readonly string _userName;
120
121 // Token: 0x04001138 RID: 4408
122 private readonly bool _isDefault;
123 }
124}
class f__AnonymousType0<< Count > j__TPar
SafeFreeNegoCredentials(bool isNtlmOnly, string username, string password, string domain)
Microsoft.Win32.SafeHandles.SafeGssCredHandle GssCredential
Microsoft.Win32.SafeHandles.SafeGssCredHandle _credential