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

◆ ChainValidationHelper()

Mono.Net.Security.ChainValidationHelper.ChainValidationHelper ( global::System::Net::Security::SslStream owner,
MobileTlsProvider provider,
MonoTlsSettings settings,
bool cloneSettings,
MonoTlsStream stream )
inlineprivate

Definition at line 32 of file ChainValidationHelper.cs.

33 {
35 MobileTlsProvider providerInternal;
36 if (settings != null)
37 {
38 if (provider == null)
39 {
40 return;
41 }
42 }
43 else
44 {
46 if (provider == null)
47 {
48 providerInternal = MonoTlsProviderFactory.GetProviderInternal();
49 }
50 }
53 this.tlsStream = stream;
54 if (owner != null)
55 {
56 }
57 if (monoTlsSettings != null)
58 {
59 global::System.Net.ServerCertValidationCallback validationCallback = ChainValidationHelper.GetValidationCallback(monoTlsSettings);
60 this.certValidationCallback = validationCallback;
61 global::System.Net.Security.LocalCertSelectionCallback localCertSelectionCallback = Mono.Net.Security.Private.CallbackHelpers.MonoToInternal(monoTlsSettings.<ClientCertificateSelectionCallback>k__BackingField);
63 if (stream == null)
64 {
65 if (owner == null)
66 {
67 return;
68 }
69 goto IL_00A0;
70 }
71 }
72 else
73 {
74 while (stream == null)
75 {
76 }
77 }
78 global::System.Net.HttpWebRequest httpWebRequest = stream.request;
79 global::System.Net.ServerCertValidationCallback serverCertValidationCallback = this.certValidationCallback;
82 {
83 global::System.Net.ServerCertValidationCallback serverCertValidationCallback2 = httpWebRequest.certValidationCallback;
84 }
85 if (this.certSelectionCallback == null)
86 {
87 }
88 IL_00A0:
89 global::System.Net.ServerCertValidationCallback serverCertValidationCallback3 = this.certValidationCallback;
91 {
93 {
94 }
95 if (!true)
96 {
97 }
99 }
100 }
class f__AnonymousType0<< Count > j__TPar
ChainValidationHelper(global::System.Net.Security.SslStream owner, MobileTlsProvider provider, MonoTlsSettings settings, bool cloneSettings, MonoTlsStream stream)
readonly global::System.Net.Security.LocalCertSelectionCallback certSelectionCallback
readonly WeakReference< global::System.Net.Security.SslStream > owner
readonly global::System.Net.ServerCertValidationCallback certValidationCallback
static global::System.Net.Security.LocalCertSelectionCallback MonoToInternal(MonoLocalCertificateSelectionCallback callback)
MonoTlsSettings CloneWithValidator(ICertificateValidator validator)
static MonoTlsSettings CopyDefaultSettings()

References Mono.Net.Security.ChainValidationHelper.certSelectionCallback, Mono.Net.Security.ChainValidationHelper.certValidationCallback, Mono.Security.Interface.MonoTlsSettings.CloneWithValidator(), Mono.Security.Interface.MonoTlsSettings.CopyDefaultSettings(), Mono.Net.Security.MonoTlsProviderFactory.GetProviderInternal(), Mono.Net.Security.ChainValidationHelper.GetValidationCallback(), j__TPar, Mono.Net.Security.Private.CallbackHelpers.MonoToInternal(), Mono.Net.Security.ChainValidationHelper.owner, Mono.Net.Security.ChainValidationHelper.provider, Mono.Net.Security.MonoTlsStream.request, and Mono.Net.Security.ChainValidationHelper.settings.