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

◆ ExtractNativeKeyAndChainFromManagedCertificate()

static unsafe void Mono.Unity.UnityTlsContext.ExtractNativeKeyAndChainFromManagedCertificate ( X509Certificate cert,
UnityTls::unitytls_errorstate * errorState,
[Out] UnityTls::unitytls_x509list * nativeCertChain,
[Out] UnityTls::unitytls_key * nativeKey )
inlinestaticprivate

Definition at line 29 of file UnityTlsContext.cs.

30 {
31 if (cert == null)
32 {
33 return;
34 }
36 if (asymmetricAlgorithm == null)
37 {
38 return;
39 }
40 UnityTls.unitytls_interface_struct.unitytls_x509list_create_t unitytls_x509list_create = UnityTls.NativeInterface.unitytls_x509list_create;
41 IntPtr method_code = unitytls_x509list_create.method_code;
42 IntPtr invoke_impl = unitytls_x509list_create.invoke_impl;
43 IntPtr method = unitytls_x509list_create.method;
46 {
47 return;
48 }
49 UnityTls.unitytls_interface_struct.unitytls_key_parse_der_t unitytls_key_parse_der = UnityTls.NativeInterface.unitytls_key_parse_der;
50 IntPtr intPtr = (IntPtr)0;
51 IntPtr method_code2 = unitytls_key_parse_der.method_code;
52 IntPtr invoke_impl2 = unitytls_key_parse_der.invoke_impl;
53 IntPtr method2 = unitytls_key_parse_der.method;
54 }
class f__AnonymousType0<< Count > j__TPar

References Mono.Security.Cryptography.PKCS8.PrivateKeyInfo.Encode(), j__TPar, and Mono.Unity.UnityTls.NativeInterface.