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
AuthenticationManager.cs
Go to the documentation of this file.
1using System;
5
6namespace System.Net
7{
8 // Token: 0x0200022D RID: 557
10 {
11 // Token: 0x06000DF9 RID: 3577 RVA: 0x0002C8E4 File Offset: 0x0002AAE4
13 {
14 }
15
16 // Token: 0x06000DFA RID: 3578 RVA: 0x0002C8F8 File Offset: 0x0002AAF8
17 private static void EnsureModules()
18 {
19 if (!true)
20 {
21 }
22 if (!true)
23 {
24 }
25 if (!true)
26 {
27 }
28 if (!false)
29 {
30 return;
31 }
32 throw new OutOfMemoryException();
33 }
34
35 // Token: 0x170002EB RID: 747
36 // (get) Token: 0x06000DFB RID: 3579 RVA: 0x0002C934 File Offset: 0x0002AB34
37 // (set) Token: 0x06000DFC RID: 3580 RVA: 0x0002C944 File Offset: 0x0002AB44
39 {
40 get
41 {
42 /*
43An exception occurred when decompiling this method (06000DFB)
44
45ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.ICredentialPolicy System.Net.AuthenticationManager::get_CredentialPolicy()
46
47 ---> System.Exception: Basic block has to end with unconditional control flow.
48{
49 IL_0000:
50 brtrue(IL_0000, ldc.i4:bool(1))
51}
52
53 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
54 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
55 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
56 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
57 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
58 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
59 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
60 --- End of inner exception stack trace ---
61 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
62 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
63*/;
64 }
65 set
66 {
67 if (!true)
68 {
69 }
70 }
71 }
72
73 // Token: 0x06000DFD RID: 3581 RVA: 0x00002050 File Offset: 0x00000250
74 private static Exception GetMustImplement()
75 {
76 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
77 }
78
79 // Token: 0x170002EC RID: 748
80 // (get) Token: 0x06000DFE RID: 3582 RVA: 0x0002C954 File Offset: 0x0002AB54
81 [MonoTODO]
82 public static global::System.Collections.Specialized.StringDictionary CustomTargetNameDictionary
83 {
84 get
85 {
86 /*
87An exception occurred when decompiling this method (06000DFE)
88
89ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Specialized.StringDictionary System.Net.AuthenticationManager::get_CustomTargetNameDictionary()
90
91 ---> System.Exception: Basic block has to end with unconditional control flow.
92{
93 Block_0:
94 stloc:Exception(var_0_05, call:Exception(AuthenticationManager::GetMustImplement))
95}
96
97 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
98 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
99 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
100 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
101 --- End of inner exception stack trace ---
102 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
103 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
104*/;
105 }
106 }
107
108 // Token: 0x170002ED RID: 749
109 // (get) Token: 0x06000DFF RID: 3583 RVA: 0x0002C968 File Offset: 0x0002AB68
111 {
112 get
113 {
114 /*
115An exception occurred when decompiling this method (06000DFF)
116
117ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator System.Net.AuthenticationManager::get_RegisteredModules()
118
119 ---> System.Exception: Basic block has to end with unconditional control flow.
120{
121 IL_0003:
122 call:void(AuthenticationManager::EnsureModules)
123}
124
125 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
126 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
127 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
128 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
129 --- End of inner exception stack trace ---
130 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
131 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
132*/;
133 }
134 }
135
136 // Token: 0x170002EE RID: 750
137 // (get) Token: 0x06000E00 RID: 3584 RVA: 0x0002C97C File Offset: 0x0002AB7C
138 [MonoTODO]
139 internal static bool OSSupportsExtendedProtection
140 {
141 get
142 {
143 }
144 }
145
146 // Token: 0x06000E01 RID: 3585 RVA: 0x0002C98C File Offset: 0x0002AB8C
147 internal static void Clear()
148 {
149 if (!true)
150 {
151 }
153 if (!false)
154 {
155 return;
156 }
157 throw new OutOfMemoryException();
158 }
159
160 // Token: 0x06000E02 RID: 3586 RVA: 0x0002C9C4 File Offset: 0x0002ABC4
161 public static Authorization Authenticate(string challenge, WebRequest request, ICredentials credentials)
162 {
163 if (challenge == null)
164 {
165 return "request";
166 }
167 if (request != null)
168 {
170 return authorization;
171 }
172 return "credentials";
173 }
174
175 // Token: 0x06000E03 RID: 3587 RVA: 0x0002C9E4 File Offset: 0x0002ABE4
176 private static Authorization DoAuthenticate(string challenge, WebRequest request, ICredentials credentials)
177 {
178 if (!true)
179 {
180 }
182 long num = 0L;
183 long value = num.m_value;
184 while (num == 0L)
185 {
186 }
187 long value2 = num.m_value;
188 long num2 = 0L;
189 int num3 = 4;
190 if (num2 != 0L)
191 {
192 throw new OutOfMemoryException();
193 }
194 long num4 = 0L;
195 if (num3 == 0)
196 {
197 }
198 if (num4 == 0L)
199 {
200 throw new InvalidCastException();
201 }
202 throw new OutOfMemoryException();
203 }
204
205 // Token: 0x06000E04 RID: 3588 RVA: 0x0002CA68 File Offset: 0x0002AC68
206 public static Authorization PreAuthenticate(WebRequest request, ICredentials credentials)
207 {
208 int num = 1;
209 if (request != null)
210 {
211 if (num == 0)
212 {
213 }
215 long num2 = 0L;
216 long value = num2.m_value;
217 while (num2 == 0L)
218 {
219 }
220 }
221 long num3 = 0L;
222 long value2 = num3.m_value;
223 long num4 = 0L;
224 int num5 = 8;
225 if (num4 != 0L)
226 {
227 throw new OutOfMemoryException();
228 }
229 long num6 = 0L;
230 if (num5 == 0)
231 {
232 }
233 if (num6 == 0L)
234 {
235 throw new InvalidCastException();
236 }
237 throw new OutOfMemoryException();
238 }
239
240 // Token: 0x06000E05 RID: 3589 RVA: 0x0002CAF0 File Offset: 0x0002ACF0
242 {
243 if (authenticationModule != null)
244 {
245 return;
246 }
247 throw new OutOfMemoryException();
248 }
249
250 // Token: 0x06000E06 RID: 3590 RVA: 0x0002CB18 File Offset: 0x0002AD18
252 {
253 while (authenticationModule == null)
254 {
255 }
256 }
257
258 // Token: 0x06000E07 RID: 3591 RVA: 0x0002CB2C File Offset: 0x0002AD2C
259 public static void Unregister(string authenticationScheme)
260 {
261 while (authenticationScheme == null)
262 {
263 }
265 }
266
267 // Token: 0x06000E08 RID: 3592 RVA: 0x0002CB44 File Offset: 0x0002AD44
268 private static void DoUnregister(string authenticationScheme, bool throwEx)
269 {
270 if (!true)
271 {
272 }
274 }
275
276 // Token: 0x06000E09 RID: 3593 RVA: 0x0002CBB8 File Offset: 0x0002ADB8
277 // Note: this type is marked as 'beforefieldinit'.
279 {
280 }
281
282 // Token: 0x04000BAF RID: 2991
283 private static ArrayList modules;
284
285 // Token: 0x04000BB0 RID: 2992
286 private static object locker;
287
288 // Token: 0x04000BB1 RID: 2993
290 }
291}
class f__AnonymousType0<< Count > j__TPar
static void Register(IAuthenticationModule authenticationModule)
static Authorization PreAuthenticate(WebRequest request, ICredentials credentials)
static ICredentialPolicy CredentialPolicy
static void Unregister(IAuthenticationModule authenticationModule)
static ICredentialPolicy credential_policy
static void Unregister(string authenticationScheme)
static Authorization DoAuthenticate(string challenge, WebRequest request, ICredentials credentials)
static void DoUnregister(string authenticationScheme, bool throwEx)
static global::System.Collections.Specialized.StringDictionary CustomTargetNameDictionary
static Authorization Authenticate(string challenge, WebRequest request, ICredentials credentials)