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
ServerCertValidationCallback.cs
Go to the documentation of this file.
1using System;
5
6namespace System.Net
7{
8 // Token: 0x0200022B RID: 555
10 {
11 // Token: 0x06000DF4 RID: 3572 RVA: 0x0002C804 File Offset: 0x0002AA04
12 internal ServerCertValidationCallback(global::System.Net.Security.RemoteCertificateValidationCallback validationCallback)
13 {
14 this.m_ValidationCallback = validationCallback;
15 if (!true)
16 {
17 }
20 }
21
22 // Token: 0x170002EA RID: 746
23 // (get) Token: 0x06000DF5 RID: 3573 RVA: 0x0002C830 File Offset: 0x0002AA30
24 internal global::System.Net.Security.RemoteCertificateValidationCallback ValidationCallback
25 {
26 get
27 {
28 return this.m_ValidationCallback;
29 }
30 }
31
32 // Token: 0x06000DF6 RID: 3574 RVA: 0x0002C844 File Offset: 0x0002AA44
33 internal void Callback(object state)
34 {
35 if (state != null)
36 {
37 }
38 global::System.Net.Security.RemoteCertificateValidationCallback validationCallback = this.m_ValidationCallback;
39 IntPtr invoke_impl = validationCallback.invoke_impl;
40 IntPtr method_code = validationCallback.method_code;
41 IntPtr method = validationCallback.method;
42 }
43
44 // Token: 0x06000DF7 RID: 3575 RVA: 0x0002C878 File Offset: 0x0002AA78
45 internal bool Invoke(object request, X509Certificate certificate, global::System.Security.Cryptography.X509Certificates.X509Chain chain, global::System.Net.Security.SslPolicyErrors sslPolicyErrors)
46 {
47 /*
48An exception occurred when decompiling this method (06000DF7)
49
50ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.ServerCertValidationCallback::Invoke(System.Object,System.Security.Cryptography.X509Certificates.X509Certificate,System.Security.Cryptography.X509Certificates.X509Chain,System.Net.Security.SslPolicyErrors)
51
52 ---> System.Exception: Basic block has to end with unconditional control flow.
53{
54 IL_0011:
55 stloc:RemoteCertificateValidationCallback(var_2_17, ldfld:RemoteCertificateValidationCallback(ServerCertValidationCallback::m_ValidationCallback, ldloc:ServerCertValidationCallback(this)))
56 stloc:native int(var_3_1E, ldfld:native int(Delegate::invoke_impl, ldloc:RemoteCertificateValidationCallback[exp:Delegate](var_2_17)))
57 stloc:native int(var_4_25, ldfld:native int(Delegate::method_code, ldloc:RemoteCertificateValidationCallback[exp:Delegate](var_2_17)))
58 stloc:native int(var_5_2D, ldfld:native int(Delegate::method, ldloc:RemoteCertificateValidationCallback[exp:Delegate](var_2_17)))
59}
60
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 1852
62 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
63 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
64 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
65 --- End of inner exception stack trace ---
66 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
67 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
68*/;
69 }
70
71 // Token: 0x04000BA8 RID: 2984
72 private readonly global::System.Net.Security.RemoteCertificateValidationCallback m_ValidationCallback;
73
74 // Token: 0x04000BA9 RID: 2985
76
77 // Token: 0x0200022C RID: 556
78 private class CallbackContext
79 {
80 // Token: 0x06000DF8 RID: 3576 RVA: 0x0002C8B4 File Offset: 0x0002AAB4
81 internal CallbackContext(object request, X509Certificate certificate, global::System.Security.Cryptography.X509Certificates.X509Chain chain, global::System.Net.Security.SslPolicyErrors sslPolicyErrors)
82 {
87 }
88
89 // Token: 0x04000BAA RID: 2986
90 internal readonly object request;
91
92 // Token: 0x04000BAB RID: 2987
94
95 // Token: 0x04000BAC RID: 2988
96 internal readonly global::System.Security.Cryptography.X509Certificates.X509Chain chain;
97
98 // Token: 0x04000BAD RID: 2989
99 internal readonly global::System.Net.Security.SslPolicyErrors sslPolicyErrors;
100
101 // Token: 0x04000BAE RID: 2990
102 internal bool result;
103 }
104 }
105}
class f__AnonymousType0<< Count > j__TPar
readonly global::System.Net.Security.SslPolicyErrors sslPolicyErrors
CallbackContext(object request, X509Certificate certificate, global::System.Security.Cryptography.X509Certificates.X509Chain chain, global::System.Net.Security.SslPolicyErrors sslPolicyErrors)
readonly global::System.Security.Cryptography.X509Certificates.X509Chain chain
ServerCertValidationCallback(global::System.Net.Security.RemoteCertificateValidationCallback validationCallback)
readonly global::System.Net.Security.RemoteCertificateValidationCallback m_ValidationCallback
global::System.Net.Security.RemoteCertificateValidationCallback ValidationCallback
bool Invoke(object request, X509Certificate certificate, global::System.Security.Cryptography.X509Certificates.X509Chain chain, global::System.Net.Security.SslPolicyErrors sslPolicyErrors)
static ExecutionContext Capture()