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
MonoTlsProviderFactory.cs
Go to the documentation of this file.
1using System;
3using Mono.Unity;
4
5namespace Mono.Net.Security
6{
7 // Token: 0x02000064 RID: 100
8 internal static class MonoTlsProviderFactory
9 {
10 // Token: 0x06000179 RID: 377 RVA: 0x00005634 File Offset: 0x00003834
12 {
13 if (!true)
14 {
15 }
16 if (!true)
17 {
18 }
20 if (!false)
21 {
22 return 1;
23 }
24 throw new OutOfMemoryException();
25 }
26
27 // Token: 0x0600017A RID: 378 RVA: 0x0000566C File Offset: 0x0000386C
28 internal static void InitializeInternal()
29 {
30 int num = 1;
31 if (num == 0)
32 {
33 }
34 if (num == 0)
35 {
36 }
37 if (num != 0)
38 {
39 return;
40 }
44 {
45 return;
46 }
47 if (!false)
48 {
49 return;
50 }
51 throw new OutOfMemoryException();
52 }
53
54 // Token: 0x0600017B RID: 379 RVA: 0x000056C0 File Offset: 0x000038C0
56 {
57 int num = 1;
58 if (num == 0)
59 {
60 }
61 if (num == 0)
62 {
63 }
65 object obj;
66 long num3;
67 if (obj != null)
68 {
69 long num2 = 0L;
70 num3 = 0L;
71 if (num2 != 0L)
72 {
73 goto IL_0026;
74 }
75 }
76 string text = string.Format("No such TLS Provider: `{0}'.", num3);
77 IL_0026:
78 throw new OutOfMemoryException();
79 }
80
81 // Token: 0x0600017C RID: 380 RVA: 0x00005728 File Offset: 0x00003928
82 private static void InitializeProviderRegistration()
83 {
84 if ("<?xml version=\"" == null)
85 {
86 }
87 if ("<?xml version=\"" == null)
88 {
89 }
90 if ("<?xml version=\"" == null)
91 {
92 }
94 if (nativeInterface != null)
95 {
96 if ("<?xml version=\"" == null)
97 {
98 }
100 return;
101 }
102 if ("<?xml version=\"" == null)
103 {
104 }
106 long num = 0L;
107 if (nativeInterface != null)
108 {
109 }
110 if (num == 0L)
111 {
112 return;
113 }
114 throw new OutOfMemoryException();
115 }
116
117 // Token: 0x0600017D RID: 381 RVA: 0x00005798 File Offset: 0x00003998
118 private static void PopulateUnityProviders()
119 {
120 if (!true)
121 {
122 }
123 }
124
125 // Token: 0x0600017E RID: 382 RVA: 0x000057A8 File Offset: 0x000039A8
126 private static void PopulateProviders()
127 {
128 }
129
130 // Token: 0x0600017F RID: 383 RVA: 0x000057B8 File Offset: 0x000039B8
132 {
133 do
134 {
135 string environmentVariable = Environment.GetEnvironmentVariable("MONO_TLS_PROVIDER");
136 bool flag = string.IsNullOrEmpty(environmentVariable);
137 bool flag2 = environmentVariable == "default";
138 bool flag3 = environmentVariable == "legacy";
139 }
140 while (Mono.Unity.UnityTls.NativeInterface == null);
142 return mobileTlsProvider;
143 }
144
145 // Token: 0x06000180 RID: 384 RVA: 0x000057F8 File Offset: 0x000039F8
147 {
148 if (!true)
149 {
150 }
152 }
153
154 // Token: 0x06000181 RID: 385 RVA: 0x00005810 File Offset: 0x00003A10
155 // Note: this type is marked as 'beforefieldinit'.
157 {
158 }
159
160 // Token: 0x04000116 RID: 278
161 private static object locker;
162
163 // Token: 0x04000117 RID: 279
164 private static bool initialized;
165
166 // Token: 0x04000118 RID: 280
168
169 // Token: 0x04000119 RID: 281
171
172 // Token: 0x0400011A RID: 282
174
175 // Token: 0x0400011B RID: 283
176 internal static readonly Guid UnityTlsId;
177
178 // Token: 0x0400011C RID: 284
179 internal static readonly Guid AppleTlsId;
180
181 // Token: 0x0400011D RID: 285
182 internal static readonly Guid BtlsId;
183 }
184}
class f__AnonymousType0<< Count > j__TPar
static MobileTlsProvider LookupProvider(string name, bool throwOnError)
static Dictionary< Guid, MobileTlsProvider > providerCache
static Dictionary< string, Tuple< Guid, string > > providerRegistration
static UnityTls.unitytls_interface_struct NativeInterface
Definition UnityTls.cs:47
static string GetEnvironmentVariable(string variable)