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
X509ChainImplUnityTls.cs
Go to the documentation of this file.
1using System;
4
5namespace Mono.Unity
6{
7 // Token: 0x02000048 RID: 72
8 internal class X509ChainImplUnityTls : global::System.Security.Cryptography.X509Certificates.X509ChainImpl
9 {
10 // Token: 0x060000B2 RID: 178 RVA: 0x000039D8 File Offset: 0x00001BD8
15
16 // Token: 0x17000014 RID: 20
17 // (get) Token: 0x060000B3 RID: 179 RVA: 0x000039F4 File Offset: 0x00001BF4
18 public override bool IsValid
19 {
20 get
21 {
22 /*
23An exception occurred when decompiling this method (060000B3)
24
25ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Mono.Unity.X509ChainImplUnityTls::get_IsValid()
26
27 ---> System.Exception: Basic block has to end with unconditional control flow.
28{
29 Block_0:
30 stloc:unitytls_x509list_ref(var_0_06, ldfld:unitytls_x509list_ref(X509ChainImplUnityTls::nativeCertificateChain, ldloc:X509ChainImplUnityTls(this)))
31 stloc:uint64(var_1_11, ldfld:uint64(unitytls_interface_struct::UNITYTLS_INVALID_HANDLE, callgetter:unitytls_interface_struct(UnityTls::get_NativeInterface)))
32}
33
34 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
35 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
36 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
37 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
38 --- End of inner exception stack trace ---
39 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
40 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
41*/;
42 }
43 }
44
45 // Token: 0x17000015 RID: 21
46 // (get) Token: 0x060000B4 RID: 180 RVA: 0x00003A14 File Offset: 0x00001C14
48 {
49 get
50 {
51 return this.nativeCertificateChain;
52 }
53 }
54
55 // Token: 0x17000016 RID: 22
56 // (get) Token: 0x060000B5 RID: 181 RVA: 0x00003A28 File Offset: 0x00001C28
57 public override global::System.Security.Cryptography.X509Certificates.X509ChainElementCollection ChainElements
58 {
59 get
60 {
61 do
62 {
63 base.ThrowIfContextInvalid();
64 }
65 while (this.elements != null);
66 UnityTls.unitytls_interface_struct.unitytls_errorstate_create_t unitytls_errorstate_create = UnityTls.NativeInterface.unitytls_errorstate_create;
67 IntPtr invoke_impl = unitytls_errorstate_create.invoke_impl;
68 IntPtr method_code = unitytls_errorstate_create.method_code;
69 IntPtr method = unitytls_errorstate_create.method;
71 UnityTls.unitytls_x509list_ref unitytls_x509list_ref = this.nativeCertificateChain;
72 IntPtr intPtr = (IntPtr)0;
77 int num = 1;
78 UnityTls.unitytls_interface_struct.unitytls_x509_export_der_t unitytls_x509_export_der = UnityTls.NativeInterface.unitytls_x509_export_der;
80 IntPtr method_code3 = unitytls_x509_export_der.method_code;
81 IntPtr invoke_impl3 = unitytls_x509_export_der.invoke_impl;
82 IntPtr method3 = unitytls_x509_export_der.method;
83 int num2 = (int)method_code3;
88 global::System.Security.Cryptography.X509Certificates.X509ChainElementCollection x509ChainElementCollection = this.elements;
91 IntPtr intPtr3 = (IntPtr)num;
95 ulong unitytls_INVALID_HANDLE = UnityTls.NativeInterface.UNITYTLS_INVALID_HANDLE;
96 if (this.reverseOrder)
97 {
98 int count = this.elements.Count;
99 global::System.Security.Cryptography.X509Certificates.X509Certificate2 certificate = this.elements[count].certificate;
100 }
101 return this.elements;
102 }
103 }
104
105 // Token: 0x060000B6 RID: 182 RVA: 0x00003B80 File Offset: 0x00001D80
106 public override void AddStatus(global::System.Security.Cryptography.X509Certificates.X509ChainStatusFlags error)
107 {
108 if (this.chainStatusList == null)
109 {
110 }
111 }
112
113 // Token: 0x17000017 RID: 23
114 // (get) Token: 0x060000B7 RID: 183 RVA: 0x00003B98 File Offset: 0x00001D98
115 public override global::System.Security.Cryptography.X509Certificates.X509ChainPolicy ChainPolicy
116 {
117 get
118 {
119 return this.policy;
120 }
121 }
122
123 // Token: 0x060000B8 RID: 184 RVA: 0x00003BAC File Offset: 0x00001DAC
124 public override bool Build(global::System.Security.Cryptography.X509Certificates.X509Certificate2 certificate)
125 {
126 }
127
128 // Token: 0x060000B9 RID: 185 RVA: 0x00003BBC File Offset: 0x00001DBC
129 public override void Reset()
130 {
131 if (this.elements != null)
132 {
133 ulong unitytls_INVALID_HANDLE = UnityTls.NativeInterface.UNITYTLS_INVALID_HANDLE;
134 global::System.Security.Cryptography.X509Certificates.X509ChainElementCollection x509ChainElementCollection = this.elements;
137 }
138 }
139
140 // Token: 0x060000BA RID: 186 RVA: 0x00003BF0 File Offset: 0x00001DF0
141 protected override void Dispose(bool disposing)
142 {
143 }
144
145 // Token: 0x04000096 RID: 150
146 private global::System.Security.Cryptography.X509Certificates.X509ChainElementCollection elements;
147
148 // Token: 0x04000097 RID: 151
150
151 // Token: 0x04000098 RID: 152
152 private global::System.Security.Cryptography.X509Certificates.X509ChainPolicy policy;
153
154 // Token: 0x04000099 RID: 153
155 private List<global::System.Security.Cryptography.X509Certificates.X509ChainStatus> chainStatusList;
156
157 // Token: 0x0400009A RID: 154
158 private bool reverseOrder;
159 }
160}
class f__AnonymousType0<< Count > j__TPar
static UnityTls.unitytls_interface_struct NativeInterface
Definition UnityTls.cs:47
override global::System.Security.Cryptography.X509Certificates.X509ChainPolicy ChainPolicy
global::System.Security.Cryptography.X509Certificates.X509ChainPolicy policy
override bool Build(global::System.Security.Cryptography.X509Certificates.X509Certificate2 certificate)
List< global::System.Security.Cryptography.X509Certificates.X509ChainStatus > chainStatusList
X509ChainImplUnityTls(UnityTls.unitytls_x509list_ref nativeCertificateChain, bool reverseOrder=false)
override void Dispose(bool disposing)
UnityTls.unitytls_x509list_ref nativeCertificateChain
override global::System.Security.Cryptography.X509Certificates.X509ChainElementCollection ChainElements
UnityTls.unitytls_x509list_ref NativeCertificateChain
global::System.Security.Cryptography.X509Certificates.X509ChainElementCollection elements
override void AddStatus(global::System.Security.Cryptography.X509Certificates.X509ChainStatusFlags error)