Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Interop.cs
Go to the documentation of this file.
1using System;
4
5internal static class Interop
6{
7 internal static class Crypt32
8 {
9 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
11 {
12 internal uint cbSize;
13
14 internal uint dwAuthType;
15
16 internal uint fdwChecks;
17
18 internal unsafe char* pwszServerName;
19 }
20
21 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
22 internal struct CERT_CHAIN_POLICY_PARA
23 {
24 public uint cbSize;
25
26 public uint dwFlags;
27
29 }
30
31 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
33 {
34 public uint cbSize;
35
36 public uint dwError;
37
38 public int lChainIndex;
39
40 public int lElementIndex;
41
42 public unsafe void* pvExtraPolicyStatus;
43 }
44
45 [DllImport("crypt32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
46 [return: MarshalAs(UnmanagedType.Bool)]
47 internal static extern bool CertVerifyCertificateChainPolicy(IntPtr pszPolicyOID, SafeX509ChainHandle pChainContext, [In] ref CERT_CHAIN_POLICY_PARA pPolicyPara, [In][Out] ref CERT_CHAIN_POLICY_STATUS pPolicyStatus);
48 }
49}
static bool CertVerifyCertificateChainPolicy(IntPtr pszPolicyOID, SafeX509ChainHandle pChainContext, [In] ref CERT_CHAIN_POLICY_PARA pPolicyPara, [In][Out] ref CERT_CHAIN_POLICY_STATUS pPolicyStatus)
unsafe SSL_EXTRA_CERT_CHAIN_POLICY_PARA * pvExtraPolicyPara
Definition Interop.cs:28