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
X509Extension.cs
Go to the documentation of this file.
1using System;
3using System.Text;
4
5namespace Mono.Security.X509
6{
7 // Token: 0x0200001B RID: 27
8 public class X509Extension
9 {
10 // Token: 0x0600012C RID: 300 RVA: 0x00006618 File Offset: 0x00004818
11 protected X509Extension()
12 {
13 }
14
15 // Token: 0x0600012D RID: 301 RVA: 0x0000662C File Offset: 0x0000482C
17 {
18 byte nTag = asn1.m_nTag;
19 int count = asn1.Count;
20 long num = 0L;
21 byte nTag2 = asn1[(int)num].m_nTag;
22 long num2 = 0L;
23 string text = ASN1Convert.ToOid(asn1[(int)num2]);
25 int num3 = 1;
26 byte nTag3 = asn1[num3].m_nTag;
27 long num4 = 0L;
28 int num5 = 1;
29 byte[] value = asn1[num5].Value;
30 long num6 = 0L;
32 int count2 = asn1.Count;
33 ASN1 asn2 = asn1[(int)num6];
35 byte nTag4 = asn2.m_nTag;
36 int length = asn2.Length;
37 if (this.extnValue.Count == 0)
38 {
39 byte[] value2 = this.extnValue.Value;
40 ASN1 asn3 = this.extnValue;
41 ASN1 asn4 = this.extnValue;
42 }
43 }
44
45 // Token: 0x0600012E RID: 302 RVA: 0x00006714 File Offset: 0x00004914
47 {
48 /*
49An exception occurred when decompiling this method (0600012E)
50
51ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Mono.Security.X509.X509Extension::.ctor(Mono.Security.X509.X509Extension)
52
53 ---> System.Exception: Basic block has to end with unconditional control flow.
54{
55 IL_0060:
56 stloc:string(var_6_6A, call:string(Locale::GetText, ldstr:string("Invalid X.509 extension.")))
57}
58
59 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
60 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
61 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
62 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
63 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
64 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
65 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
66 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
67 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
68 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
69 --- End of inner exception stack trace ---
70 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
71 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
72*/;
73 }
74
75 // Token: 0x0600012F RID: 303 RVA: 0x0000678C File Offset: 0x0000498C
76 protected virtual void Decode()
77 {
78 }
79
80 // Token: 0x06000130 RID: 304 RVA: 0x0000679C File Offset: 0x0000499C
81 protected virtual void Encode()
82 {
83 }
84
85 // Token: 0x1700005A RID: 90
86 // (get) Token: 0x06000131 RID: 305 RVA: 0x000067AC File Offset: 0x000049AC
87 public ASN1 ASN1
88 {
89 get
90 {
91 /*
92An exception occurred when decompiling this method (06000131)
93
94ICSharpCode.Decompiler.DecompilerException: Error decompiling Mono.Security.ASN1 Mono.Security.X509.X509Extension::get_ASN1()
95
96 ---> System.Exception: Basic block has to end with unconditional control flow.
97{
98 IL_0014:
99 stloc:ASN1(var_3_1A, ldfld:ASN1(X509Extension::extnValue, ldloc:X509Extension(this)))
100}
101
102 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
103 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
104 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
105 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
106 --- End of inner exception stack trace ---
107 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
108 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
109*/;
110 }
111 }
112
113 // Token: 0x1700005B RID: 91
114 // (get) Token: 0x06000132 RID: 306 RVA: 0x000067D4 File Offset: 0x000049D4
115 public string Oid
116 {
117 get
118 {
119 return this.extnOid;
120 }
121 }
122
123 // Token: 0x1700005C RID: 92
124 // (get) Token: 0x06000133 RID: 307 RVA: 0x000067E8 File Offset: 0x000049E8
125 // (set) Token: 0x06000134 RID: 308 RVA: 0x000067FC File Offset: 0x000049FC
126 public bool Critical
127 {
128 get
129 {
130 return this.extnCritical;
131 }
132 set
133 {
134 }
135 }
136
137 // Token: 0x1700005D RID: 93
138 // (get) Token: 0x06000135 RID: 309 RVA: 0x0000680C File Offset: 0x00004A0C
139 public virtual string Name
140 {
141 get
142 {
143 return this.extnOid;
144 }
145 }
146
147 // Token: 0x1700005E RID: 94
148 // (get) Token: 0x06000136 RID: 310 RVA: 0x00006820 File Offset: 0x00004A20
149 public ASN1 Value
150 {
151 get
152 {
153 while (this.extnValue != null)
154 {
155 }
156 return this.extnValue;
157 }
158 }
159
160 // Token: 0x06000137 RID: 311 RVA: 0x0000683C File Offset: 0x00004A3C
161 public override bool Equals(object obj)
162 {
163 if (obj != null)
164 {
165 bool flag = this.extnCritical;
166 string text = this.extnOid;
167 int length = this.extnValue.Length;
168 int length2 = this.extnValue.Length;
169 long num = 0L;
170 ASN1 asn = this.extnValue[(int)num];
171 int length3 = this.extnValue.Length;
172 return;
173 }
174 }
175
176 // Token: 0x06000138 RID: 312 RVA: 0x0000689C File Offset: 0x00004A9C
177 public byte[] GetBytes()
178 {
179 /*
180An exception occurred when decompiling this method (06000138)
181
182ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] Mono.Security.X509.X509Extension::GetBytes()
183
184 ---> System.Exception: Basic block has to end with unconditional control flow.
185{
186 Block_0:
187 stloc:ASN1(var_0_06, callgetter:ASN1(X509Extension::get_ASN1, ldloc:X509Extension(this)))
188}
189
190 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
191 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
192 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
193 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
194 --- End of inner exception stack trace ---
195 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
196 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
197*/;
198 }
199
200 // Token: 0x06000139 RID: 313 RVA: 0x000068B0 File Offset: 0x00004AB0
201 public override int GetHashCode()
202 {
203 /*
204An exception occurred when decompiling this method (06000139)
205
206ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Mono.Security.X509.X509Extension::GetHashCode()
207
208 ---> System.Exception: Basic block has to end with unconditional control flow.
209{
210 Block_0:
211 stloc:string(var_0_06, ldfld:string(X509Extension::extnOid, ldloc:X509Extension(this)))
212}
213
214 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
215 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
216 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
217 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
218 --- End of inner exception stack trace ---
219 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
220 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
221*/;
222 }
223
224 // Token: 0x0600013A RID: 314 RVA: 0x000068C4 File Offset: 0x00004AC4
225 private void WriteLine(StringBuilder sb, int n, int pos)
226 {
227 int num = 1;
228 byte[] value = this.extnValue.Value;
229 if (num == 0)
230 {
231 }
233 string text;
234 StringBuilder stringBuilder = sb.Append(text);
235 }
236
237 // Token: 0x0600013B RID: 315 RVA: 0x00006948 File Offset: 0x00004B48
238 public override string ToString()
239 {
240 /*
241An exception occurred when decompiling this method (0600013B)
242
243ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Mono.Security.X509.X509Extension::ToString()
244
245 ---> System.Exception: Basic block has to end with unconditional control flow.
246{
247 Block_0:
248 stloc:int32(var_0_0B, callgetter:int32(ASN1::get_Length, ldfld:ASN1(X509Extension::extnValue, ldloc:X509Extension(this))))
249 stloc:int32(var_1_17, callgetter:int32(ASN1::get_Length, ldfld:ASN1(X509Extension::extnValue, ldloc:X509Extension(this))))
250}
251
252 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
253 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
254 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
255 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
256 --- End of inner exception stack trace ---
257 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
258 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
259*/;
260 }
261
262 // Token: 0x0400009B RID: 155
263 protected string extnOid;
264
265 // Token: 0x0400009C RID: 156
266 protected bool extnCritical;
267
268 // Token: 0x0400009D RID: 157
269 protected ASN1 extnValue;
270 }
271}
class f__AnonymousType0<< Count > j__TPar
static string ToOid(ASN1 asn1)
byte[] Value
Definition ASN1.cs:89
void WriteLine(StringBuilder sb, int n, int pos)
override bool Equals(object obj)
X509Extension(X509Extension extension)
static CultureInfo InvariantCulture
StringBuilder Append(char value, int repeatCount)