terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
UnityTlsContext.cs
Go to the documentation of this file.
1using System;
5using System.Text;
11using Mono.Util;
12
13namespace Mono.Unity
14{
15 [global::Cpp2ILInjected.Token(Token = "0x2000044")]
17 {
18 [global::Cpp2ILInjected.Token(Token = "0x6000089")]
19 [global::Cpp2ILInjected.Address(RVA = "0x1D44038", Offset = "0x1D44038", Length = "0x6B0")]
20 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
21 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnityTlsStream), Member = "CreateContext", MemberParameters = new object[] { typeof(MonoSslAuthenticationOptions) }, ReturnType = typeof(MobileTlsContext))]
22 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
23 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MobileTlsContext), Member = ".ctor", MemberParameters = new object[]
24 {
27 }, ReturnType = typeof(void))]
28 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GCHandle), Member = "Alloc", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(GCHandle))]
29 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTls), Member = "get_NativeInterface", ReturnType = typeof(UnityTls.unitytls_interface_struct))]
30 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTls.unitytls_tlsctx_read_callback), Member = ".ctor", MemberParameters = new object[]
31 {
32 typeof(object),
34 }, ReturnType = typeof(void))]
35 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTls.unitytls_tlsctx_write_callback), Member = ".ctor", MemberParameters = new object[]
36 {
37 typeof(object),
39 }, ReturnType = typeof(void))]
40 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(IntPtr) }, ReturnType = typeof(void*))]
41 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTlsContext), Member = "ExtractNativeKeyAndChainFromManagedCertificate", MemberParameters = new object[]
42 {
47 }, ReturnType = typeof(void))]
48 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "CheckAndThrow", MemberParameters = new object[]
49 {
51 typeof(string),
53 }, ReturnType = typeof(void))]
54 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Encoding), Member = "get_UTF8", ReturnType = typeof(Encoding))]
55 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(IntPtr))]
56 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTls.unitytls_tlsctx_certificate_callback), Member = ".ctor", MemberParameters = new object[]
57 {
58 typeof(object),
60 }, ReturnType = typeof(void))]
61 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTls.unitytls_tlsctx_x509verify_callback), Member = ".ctor", MemberParameters = new object[]
62 {
63 typeof(object),
65 }, ReturnType = typeof(void))]
66 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 24)]
71
72 [global::Cpp2ILInjected.Token(Token = "0x600008A")]
73 [global::Cpp2ILInjected.Address(RVA = "0x1D44880", Offset = "0x1D44880", Length = "0x2E4")]
74 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
75 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnityTlsContext), Member = ".ctor", MemberParameters = new object[]
76 {
79 }, ReturnType = typeof(void))]
80 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnityTlsContext), Member = "CertificateCallback", MemberParameters = new object[]
81 {
82 typeof(UnityTls.unitytls_tlsctx*),
83 typeof(byte*),
85 typeof(UnityTls.unitytls_x509name*),
87 typeof(UnityTls.unitytls_x509list_ref*),
88 typeof(UnityTls.unitytls_key_ref*),
89 typeof(UnityTls.unitytls_errorstate*)
90 }, ReturnType = typeof(void))]
91 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
92 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(X509Certificate2), Member = "get_PrivateKey", ReturnType = typeof(AsymmetricAlgorithm))]
93 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTls), Member = "get_NativeInterface", ReturnType = typeof(UnityTls.unitytls_interface_struct))]
94 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CertHelper), Member = "AddCertificateToNativeChain", MemberParameters = new object[]
95 {
96 typeof(UnityTls.unitytls_x509list*),
98 typeof(UnityTls.unitytls_errorstate*)
99 }, ReturnType = typeof(void))]
100 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PKCS8.PrivateKeyInfo), Member = "Encode", MemberParameters = new object[] { typeof(AsymmetricAlgorithm) }, ReturnType = typeof(byte[]))]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(IntPtr))]
102 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ArgumentException), Member = ".ctor", MemberParameters = new object[]
103 {
104 typeof(string),
105 typeof(string)
106 }, ReturnType = typeof(void))]
107 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ArgumentNullException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
108 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 24)]
113
114 [global::Cpp2ILInjected.Token(Token = "0x1700000A")]
115 public override bool IsAuthenticated
116 {
117 [global::Cpp2ILInjected.Token(Token = "0x600008B")]
118 [global::Cpp2ILInjected.Address(RVA = "0x1D44B64", Offset = "0x1D44B64", Length = "0x8")]
119 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
120 get
121 {
122 throw null;
123 }
124 }
125
126 [global::Cpp2ILInjected.Token(Token = "0x1700000B")]
128 {
129 [global::Cpp2ILInjected.Token(Token = "0x600008C")]
130 [global::Cpp2ILInjected.Address(RVA = "0x1D44B6C", Offset = "0x1D44B6C", Length = "0x8")]
131 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
132 get
133 {
134 throw null;
135 }
136 }
137
138 [global::Cpp2ILInjected.Token(Token = "0x1700000C")]
140 {
141 [global::Cpp2ILInjected.Token(Token = "0x600008D")]
142 [global::Cpp2ILInjected.Address(RVA = "0x1D44B74", Offset = "0x1D44B74", Length = "0x8")]
143 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
144 get
145 {
146 throw null;
147 }
148 }
149
150 [global::Cpp2ILInjected.Token(Token = "0x600008E")]
151 [global::Cpp2ILInjected.Address(RVA = "0x1D44B7C", Offset = "0x1D44B7C", Length = "0x190")]
152 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
153 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
154 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTls), Member = "get_NativeInterface", ReturnType = typeof(UnityTls.unitytls_interface_struct))]
155 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(IntPtr))]
156 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(IntPtr) }, ReturnType = typeof(int))]
157 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "CheckAndThrow", MemberParameters = new object[]
158 {
159 typeof(UnityTls.unitytls_errorstate),
160 typeof(string),
162 }, ReturnType = typeof(void))]
163 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ValueTuple<int, bool>), Member = ".ctor", MemberParameters = new object[]
164 {
165 typeof(int),
166 typeof(bool)
167 }, ReturnType = typeof(void))]
168 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
169 public override ValueTuple<int, bool> Read(byte[] buffer, int offset, int count)
170 {
171 throw null;
172 }
173
174 [global::Cpp2ILInjected.Token(Token = "0x600008F")]
175 [global::Cpp2ILInjected.Address(RVA = "0x1D44D0C", Offset = "0x1D44D0C", Length = "0x188")]
176 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
177 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
178 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTls), Member = "get_NativeInterface", ReturnType = typeof(UnityTls.unitytls_interface_struct))]
179 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(IntPtr))]
180 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(IntPtr) }, ReturnType = typeof(int))]
181 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "CheckAndThrow", MemberParameters = new object[]
182 {
183 typeof(UnityTls.unitytls_errorstate),
184 typeof(string),
186 }, ReturnType = typeof(void))]
187 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ValueTuple<int, bool>), Member = ".ctor", MemberParameters = new object[]
188 {
189 typeof(int),
190 typeof(bool)
191 }, ReturnType = typeof(void))]
192 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
193 public override ValueTuple<int, bool> Write(byte[] buffer, int offset, int count)
194 {
195 throw null;
196 }
197
198 [global::Cpp2ILInjected.Token(Token = "0x6000090")]
199 [global::Cpp2ILInjected.Address(RVA = "0x1D44E94", Offset = "0x1D44E94", Length = "0x38")]
200 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
201 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NotSupportedException), Member = ".ctor", ReturnType = typeof(void))]
202 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
203 public override void Renegotiate()
204 {
205 throw null;
206 }
207
208 [global::Cpp2ILInjected.Token(Token = "0x6000091")]
209 [global::Cpp2ILInjected.Address(RVA = "0x1D44ECC", Offset = "0x1D44ECC", Length = "0x8")]
210 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
211 public override bool PendingRenegotiation()
212 {
213 throw null;
214 }
215
216 [global::Cpp2ILInjected.Token(Token = "0x6000092")]
217 [global::Cpp2ILInjected.Address(RVA = "0x1D44ED4", Offset = "0x1D44ED4", Length = "0xC8")]
218 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
219 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
220 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTls), Member = "get_NativeInterface", ReturnType = typeof(UnityTls.unitytls_interface_struct))]
221 public override void Shutdown()
222 {
223 throw null;
224 }
225
226 [global::Cpp2ILInjected.Token(Token = "0x6000093")]
227 [global::Cpp2ILInjected.Address(RVA = "0x1D44FA8", Offset = "0x1D44FA8", Length = "0x78")]
228 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
229 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
230 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GCHandle), Member = "Free", ReturnType = typeof(void))]
231 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
232 protected override void Dispose(bool disposing)
233 {
234 throw null;
235 }
236
237 [global::Cpp2ILInjected.Token(Token = "0x6000094")]
238 [global::Cpp2ILInjected.Address(RVA = "0x1D45020", Offset = "0x1D45020", Length = "0x140")]
239 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
240 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
241 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTls), Member = "get_NativeInterface", ReturnType = typeof(UnityTls.unitytls_interface_struct))]
242 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(IntPtr))]
243 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "CheckAndThrow", MemberParameters = new object[]
244 {
245 typeof(UnityTls.unitytls_errorstate),
246 typeof(string),
248 }, ReturnType = typeof(void))]
249 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
250 public override void StartHandshake()
251 {
252 throw null;
253 }
254
255 [global::Cpp2ILInjected.Token(Token = "0x6000095")]
256 [global::Cpp2ILInjected.Address(RVA = "0x1D45160", Offset = "0x1D45160", Length = "0x158")]
257 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
258 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
259 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTls), Member = "get_NativeInterface", ReturnType = typeof(UnityTls.unitytls_interface_struct))]
260 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "CheckAndThrow", MemberParameters = new object[]
261 {
263 typeof(string),
265 }, ReturnType = typeof(void))]
266 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MobileTlsContext), Member = "ValidateCertificate", MemberParameters = new object[]
267 {
270 }, ReturnType = typeof(bool))]
271 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TlsException), Member = ".ctor", MemberParameters = new object[]
272 {
274 typeof(string)
275 }, ReturnType = typeof(void))]
276 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "CheckAndThrow", MemberParameters = new object[]
277 {
278 typeof(UnityTls.unitytls_errorstate),
279 typeof(UnityTls.unitytls_x509verify_result),
280 typeof(string),
282 }, ReturnType = typeof(void))]
283 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
284 public override bool ProcessHandshake()
285 {
286 throw null;
287 }
288
289 [global::Cpp2ILInjected.Token(Token = "0x6000096")]
290 [global::Cpp2ILInjected.Address(RVA = "0x1D45304", Offset = "0x1D45304", Length = "0x104")]
291 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
292 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
293 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTls), Member = "get_NativeInterface", ReturnType = typeof(UnityTls.unitytls_interface_struct))]
294 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MonoTlsConnectionInfo), Member = ".ctor", ReturnType = typeof(void))]
295 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
296 public override void FinishHandshake()
297 {
298 throw null;
299 }
300
302 [global::Cpp2ILInjected.Token(Token = "0x6000097")]
303 [global::Cpp2ILInjected.Address(RVA = "0x1D43D40", Offset = "0x1D43D40", Length = "0xC4")]
304 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
305 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
306 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(void*) }, ReturnType = typeof(IntPtr))]
307 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GCHandle), Member = "op_Explicit", MemberParameters = new object[] { typeof(IntPtr) }, ReturnType = typeof(GCHandle))]
308 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GCHandle), Member = "get_Target", ReturnType = typeof(object))]
309 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTlsContext), Member = "WriteCallback", MemberParameters = new object[]
310 {
311 typeof(byte*),
312 typeof(IntPtr),
313 typeof(UnityTls.unitytls_errorstate*)
314 }, ReturnType = typeof(IntPtr))]
315 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
317 {
318 throw null;
319 }
320
321 [global::Cpp2ILInjected.Token(Token = "0x6000098")]
322 [global::Cpp2ILInjected.Address(RVA = "0x1D45428", Offset = "0x1D45428", Length = "0x23C")]
323 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
324 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnityTlsContext), Member = "WriteCallback", MemberParameters = new object[]
325 {
326 typeof(void*),
327 typeof(byte*),
328 typeof(IntPtr),
330 }, ReturnType = typeof(IntPtr))]
331 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
332 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(IntPtr) }, ReturnType = typeof(int))]
333 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(void*) }, ReturnType = typeof(IntPtr))]
334 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Marshal), Member = "Copy", MemberParameters = new object[]
335 {
336 typeof(IntPtr),
337 typeof(byte[]),
338 typeof(int),
339 typeof(int)
340 }, ReturnType = typeof(void))]
341 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MobileAuthenticatedStream), Member = "InternalWrite", MemberParameters = new object[]
342 {
343 typeof(byte[]),
344 typeof(int),
345 typeof(int)
346 }, ReturnType = typeof(bool))]
347 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTls), Member = "get_NativeInterface", ReturnType = typeof(UnityTls.unitytls_interface_struct))]
348 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(IntPtr))]
349 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 13)]
351 {
352 throw null;
353 }
354
356 [global::Cpp2ILInjected.Token(Token = "0x6000099")]
357 [global::Cpp2ILInjected.Address(RVA = "0x1D43E04", Offset = "0x1D43E04", Length = "0xC4")]
358 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
359 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
360 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(void*) }, ReturnType = typeof(IntPtr))]
361 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GCHandle), Member = "op_Explicit", MemberParameters = new object[] { typeof(IntPtr) }, ReturnType = typeof(GCHandle))]
362 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GCHandle), Member = "get_Target", ReturnType = typeof(object))]
363 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTlsContext), Member = "ReadCallback", MemberParameters = new object[]
364 {
365 typeof(byte*),
366 typeof(IntPtr),
367 typeof(UnityTls.unitytls_errorstate*)
368 }, ReturnType = typeof(IntPtr))]
369 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
371 {
372 throw null;
373 }
374
375 [global::Cpp2ILInjected.Token(Token = "0x600009A")]
376 [global::Cpp2ILInjected.Address(RVA = "0x1D45848", Offset = "0x1D45848", Length = "0x2B4")]
377 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
378 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnityTlsContext), Member = "ReadCallback", MemberParameters = new object[]
379 {
380 typeof(void*),
381 typeof(byte*),
382 typeof(IntPtr),
384 }, ReturnType = typeof(IntPtr))]
385 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
386 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(IntPtr) }, ReturnType = typeof(int))]
387 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MobileAuthenticatedStream), Member = "InternalRead", MemberParameters = new object[]
388 {
389 typeof(byte[]),
390 typeof(int),
391 typeof(int),
392 typeof(ref bool)
393 }, ReturnType = typeof(int))]
394 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(void*) }, ReturnType = typeof(IntPtr))]
395 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Marshal), Member = "Copy", MemberParameters = new object[]
396 {
397 typeof(byte[]),
398 typeof(int),
399 typeof(IntPtr),
400 typeof(int)
401 }, ReturnType = typeof(void))]
402 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTls), Member = "get_NativeInterface", ReturnType = typeof(UnityTls.unitytls_interface_struct))]
403 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(IntPtr))]
404 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 13)]
406 {
407 throw null;
408 }
409
411 [global::Cpp2ILInjected.Token(Token = "0x600009B")]
412 [global::Cpp2ILInjected.Address(RVA = "0x1D43EC8", Offset = "0x1D43EC8", Length = "0xAC")]
413 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
414 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
415 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(void*) }, ReturnType = typeof(IntPtr))]
416 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GCHandle), Member = "op_Explicit", MemberParameters = new object[] { typeof(IntPtr) }, ReturnType = typeof(GCHandle))]
417 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GCHandle), Member = "get_Target", ReturnType = typeof(object))]
418 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTlsContext), Member = "VerifyCallback", MemberParameters = new object[]
419 {
420 typeof(UnityTls.unitytls_x509list_ref),
421 typeof(UnityTls.unitytls_errorstate*)
422 }, ReturnType = typeof(UnityTls.unitytls_x509verify_result))]
423 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
428
429 [global::Cpp2ILInjected.Token(Token = "0x600009C")]
430 [global::Cpp2ILInjected.Address(RVA = "0x1D45C08", Offset = "0x1D45C08", Length = "0x400")]
431 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
432 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnityTlsContext), Member = "VerifyCallback", MemberParameters = new object[]
433 {
434 typeof(void*),
437 }, ReturnType = typeof(UnityTls.unitytls_x509verify_result))]
438 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
439 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(X509ChainImplUnityTls), Member = ".ctor", MemberParameters = new object[]
440 {
441 typeof(UnityTls.unitytls_x509list_ref),
442 typeof(bool)
443 }, ReturnType = typeof(void))]
444 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(X509Chain), Member = ".ctor", MemberParameters = new object[] { typeof(X509ChainImpl) }, ReturnType = typeof(void))]
445 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(X509Chain), Member = "get_ChainElements", ReturnType = typeof(X509ChainElementCollection))]
446 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(X509ChainElementCollection), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(X509ChainElement))]
447 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MobileTlsContext), Member = "ValidateCertificate", MemberParameters = new object[]
448 {
451 }, ReturnType = typeof(bool))]
452 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 26)]
457
459 [global::Cpp2ILInjected.Token(Token = "0x600009D")]
460 [global::Cpp2ILInjected.Address(RVA = "0x1D43F74", Offset = "0x1D43F74", Length = "0xC4")]
461 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
462 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
463 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(void*) }, ReturnType = typeof(IntPtr))]
464 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GCHandle), Member = "op_Explicit", MemberParameters = new object[] { typeof(IntPtr) }, ReturnType = typeof(GCHandle))]
465 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GCHandle), Member = "get_Target", ReturnType = typeof(object))]
466 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTlsContext), Member = "CertificateCallback", MemberParameters = new object[]
467 {
468 typeof(UnityTls.unitytls_tlsctx*),
469 typeof(byte*),
470 typeof(IntPtr),
471 typeof(UnityTls.unitytls_x509name*),
472 typeof(IntPtr),
473 typeof(UnityTls.unitytls_x509list_ref*),
474 typeof(UnityTls.unitytls_key_ref*),
475 typeof(UnityTls.unitytls_errorstate*)
476 }, ReturnType = typeof(void))]
477 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
482
483 [global::Cpp2ILInjected.Token(Token = "0x600009E")]
484 [global::Cpp2ILInjected.Address(RVA = "0x1D46084", Offset = "0x1D46084", Length = "0x260")]
485 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
486 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnityTlsContext), Member = "CertificateCallback", MemberParameters = new object[]
487 {
488 typeof(void*),
490 typeof(byte*),
491 typeof(IntPtr),
493 typeof(IntPtr),
497 }, ReturnType = typeof(void))]
498 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
499 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MobileTlsContext), Member = "SelectClientCertificate", MemberParameters = new object[] { typeof(string[]) }, ReturnType = typeof(X509Certificate))]
500 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTls), Member = "get_NativeInterface", ReturnType = typeof(UnityTls.unitytls_interface_struct))]
501 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnityTlsContext), Member = "ExtractNativeKeyAndChainFromManagedCertificate", MemberParameters = new object[]
502 {
504 typeof(UnityTls.unitytls_errorstate*),
505 typeof(ref UnityTls.unitytls_x509list*),
506 typeof(ref UnityTls.unitytls_key*)
507 }, ReturnType = typeof(void))]
508 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "CheckAndThrow", MemberParameters = new object[]
509 {
510 typeof(UnityTls.unitytls_errorstate),
511 typeof(string),
513 }, ReturnType = typeof(void))]
514 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TlsException), Member = ".ctor", MemberParameters = new object[]
515 {
517 typeof(string)
518 }, ReturnType = typeof(void))]
519 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 15)]
524
525 [global::Cpp2ILInjected.Token(Token = "0x4000085")]
526 [global::Cpp2ILInjected.FieldOffset(Offset = "0x58")]
528
529 [global::Cpp2ILInjected.Token(Token = "0x4000086")]
530 [global::Cpp2ILInjected.FieldOffset(Offset = "0x60")]
532
533 [global::Cpp2ILInjected.Token(Token = "0x4000087")]
534 [global::Cpp2ILInjected.FieldOffset(Offset = "0x68")]
536
537 [global::Cpp2ILInjected.Token(Token = "0x4000088")]
538 [global::Cpp2ILInjected.FieldOffset(Offset = "0x70")]
540
541 [global::Cpp2ILInjected.Token(Token = "0x4000089")]
542 [global::Cpp2ILInjected.FieldOffset(Offset = "0x78")]
544
545 [global::Cpp2ILInjected.Token(Token = "0x400008A")]
546 [global::Cpp2ILInjected.FieldOffset(Offset = "0x80")]
548
549 [global::Cpp2ILInjected.Token(Token = "0x400008B")]
550 [global::Cpp2ILInjected.FieldOffset(Offset = "0x88")]
552
553 [global::Cpp2ILInjected.Token(Token = "0x400008C")]
554 [global::Cpp2ILInjected.FieldOffset(Offset = "0x90")]
556
557 [global::Cpp2ILInjected.Token(Token = "0x400008D")]
558 [global::Cpp2ILInjected.FieldOffset(Offset = "0x98")]
560
561 [global::Cpp2ILInjected.Token(Token = "0x400008E")]
562 [global::Cpp2ILInjected.FieldOffset(Offset = "0xA0")]
564
565 [global::Cpp2ILInjected.Token(Token = "0x400008F")]
566 [global::Cpp2ILInjected.FieldOffset(Offset = "0xA8")]
567 private bool isAuthenticated;
568
569 [global::Cpp2ILInjected.Token(Token = "0x4000090")]
570 [global::Cpp2ILInjected.FieldOffset(Offset = "0xA9")]
571 private bool hasContext;
572
573 [global::Cpp2ILInjected.Token(Token = "0x4000091")]
574 [global::Cpp2ILInjected.FieldOffset(Offset = "0xAA")]
575 private bool closedGraceful;
576
577 [global::Cpp2ILInjected.Token(Token = "0x4000092")]
578 [global::Cpp2ILInjected.FieldOffset(Offset = "0xB0")]
579 private byte[] writeBuffer;
580
581 [global::Cpp2ILInjected.Token(Token = "0x4000093")]
582 [global::Cpp2ILInjected.FieldOffset(Offset = "0xB8")]
583 private byte[] readBuffer;
584
585 [global::Cpp2ILInjected.Token(Token = "0x4000094")]
586 [global::Cpp2ILInjected.FieldOffset(Offset = "0xC0")]
588
589 [global::Cpp2ILInjected.Token(Token = "0x4000095")]
590 [global::Cpp2ILInjected.FieldOffset(Offset = "0xC8")]
592 }
593}
class f__AnonymousType0<< Count > j__TPar
override bool PendingRenegotiation()
X509Certificate2 remoteCertificate
unsafe void CertificateCallback(UnityTls.unitytls_tlsctx *ctx, byte *cn, IntPtr cnLen, UnityTls.unitytls_x509name *caList, IntPtr caListLen, UnityTls.unitytls_x509list_ref *chain, UnityTls.unitytls_key_ref *key, UnityTls.unitytls_errorstate *errorState)
override X509Certificate2 RemoteCertificate
MonoTlsConnectionInfo connectioninfo
static unsafe UnityTls.unitytls_x509verify_result VerifyCallback(void *userData, UnityTls.unitytls_x509list_ref chain, UnityTls.unitytls_errorstate *errorState)
unsafe IntPtr WriteCallback(byte *data, IntPtr bufferLen, UnityTls.unitytls_errorstate *errorState)
override ValueTuple< int, bool > Write(byte[] buffer, int offset, int count)
override void Dispose(bool disposing)
unsafe UnityTlsContext(MobileAuthenticatedStream parent, MonoSslAuthenticationOptions options)
static unsafe IntPtr ReadCallback(void *userData, byte *buffer, IntPtr bufferLen, UnityTls.unitytls_errorstate *errorState)
X509Certificate localClientCertificate
unsafe UnityTls.unitytls_tlsctx * tlsContext
static unsafe void ExtractNativeKeyAndChainFromManagedCertificate(X509Certificate cert, UnityTls.unitytls_errorstate *errorState, out UnityTls.unitytls_x509list *nativeCertChain, out UnityTls.unitytls_key *nativeKey)
unsafe UnityTls.unitytls_key * requestedClientKey
UnityTls.unitytls_tlsctx_write_callback writeCallback
UnityTls.unitytls_tlsctx_read_callback readCallback
unsafe UnityTls.unitytls_x509verify_result VerifyCallback(UnityTls.unitytls_x509list_ref chain, UnityTls.unitytls_errorstate *errorState)
static unsafe void CertificateCallback(void *userData, UnityTls.unitytls_tlsctx *ctx, byte *cn, IntPtr cnLen, UnityTls.unitytls_x509name *caList, IntPtr caListLen, UnityTls.unitytls_x509list_ref *chain, UnityTls.unitytls_key_ref *key, UnityTls.unitytls_errorstate *errorState)
unsafe IntPtr ReadCallback(byte *buffer, IntPtr bufferLen, UnityTls.unitytls_errorstate *errorState)
override ValueTuple< int, bool > Read(byte[] buffer, int offset, int count)
override X509Certificate LocalClientCertificate
static unsafe IntPtr WriteCallback(void *userData, byte *data, IntPtr bufferLen, UnityTls.unitytls_errorstate *errorState)
unsafe UnityTls.unitytls_x509list * requestedClientCertChain
UnityTls.unitytls_tlsctx_x509verify_callback verifyCallback
UnityTls.unitytls_tlsctx_certificate_callback certificateCallback
unsafe delegate IntPtr unitytls_tlsctx_write_callback(void *userData, byte *data, IntPtr bufferLen, UnityTls.unitytls_errorstate *errorState)
unsafe delegate IntPtr unitytls_tlsctx_read_callback(void *userData, byte *buffer, IntPtr bufferLen, UnityTls.unitytls_errorstate *errorState)
unsafe delegate UnityTls.unitytls_x509verify_result unitytls_tlsctx_x509verify_callback(void *userData, UnityTls.unitytls_x509list_ref chain, UnityTls.unitytls_errorstate *errorState)
unsafe delegate void unitytls_tlsctx_certificate_callback(void *userData, UnityTls.unitytls_tlsctx *ctx, byte *cn, IntPtr cnLen, UnityTls.unitytls_x509name *caList, IntPtr caListLen, UnityTls.unitytls_x509list_ref *chain, UnityTls.unitytls_key_ref *key, UnityTls.unitytls_errorstate *errorState)