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

◆ CertificateCallback() [1/2]

unsafe void Mono.Unity.UnityTlsContext.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 )
inlineprivate

Definition at line 391 of file UnityTlsContext.cs.

392 {
393 if (this.remoteCertificate == null)
394 {
395 return;
396 }
397 X509Certificate x509Certificate;
398 this.localClientCertificate = x509Certificate;
399 if (x509Certificate != null)
400 {
401 UnityTls.unitytls_interface_struct.unitytls_x509list_free_t unitytls_x509list_free = UnityTls.NativeInterface.unitytls_x509list_free;
402 UnityTls.unitytls_x509list* ptr = this.requestedClientCertChain;
403 IntPtr method_code = unitytls_x509list_free.method_code;
404 IntPtr invoke_impl = unitytls_x509list_free.invoke_impl;
405 IntPtr method = unitytls_x509list_free.method;
406 UnityTls.unitytls_interface_struct.unitytls_key_free_t unitytls_key_free = UnityTls.NativeInterface.unitytls_key_free;
407 UnityTls.unitytls_key* ptr2 = this.requestedClientKey;
408 IntPtr method_code2 = unitytls_key_free.method_code;
409 IntPtr invoke_impl2 = unitytls_key_free.invoke_impl;
410 IntPtr method2 = unitytls_key_free.method;
412 UnityTls.unitytls_interface_struct.unitytls_x509list_get_ref_t unitytls_x509list_get_ref = UnityTls.NativeInterface.unitytls_x509list_get_ref;
413 IntPtr method_code3 = unitytls_x509list_get_ref.method_code;
414 IntPtr invoke_impl3 = unitytls_x509list_get_ref.invoke_impl;
415 IntPtr method3 = unitytls_x509list_get_ref.method;
416 chain->handle = (ulong)method_code3;
417 UnityTls.unitytls_interface_struct.unitytls_key_get_ref_t unitytls_key_get_ref = UnityTls.NativeInterface.unitytls_key_get_ref;
418 IntPtr method_code4 = unitytls_key_get_ref.method_code;
419 IntPtr invoke_impl4 = unitytls_key_get_ref.invoke_impl;
420 IntPtr method4 = unitytls_key_get_ref.method;
421 return;
422 }
423 ulong unitytls_INVALID_HANDLE = UnityTls.NativeInterface.UNITYTLS_INVALID_HANDLE;
424 chain->handle = unitytls_INVALID_HANDLE;
425 ulong unitytls_INVALID_HANDLE2 = UnityTls.NativeInterface.UNITYTLS_INVALID_HANDLE;
427 }
class f__AnonymousType0<< Count > j__TPar
global::System.Security.Cryptography.X509Certificates.X509Certificate2 remoteCertificate
X509Certificate localClientCertificate
unsafe UnityTls.unitytls_key * requestedClientKey
unsafe UnityTls.unitytls_x509list * requestedClientCertChain

References j__TPar, System.key, Mono.Unity.UnityTlsContext.localClientCertificate, Mono.Unity.UnityTls.NativeInterface, Mono.Unity.UnityTlsContext.remoteCertificate, Mono.Unity.UnityTlsContext.requestedClientCertChain, and Mono.Unity.UnityTlsContext.requestedClientKey.