{
internal static partial class Crypt32
{
- [DllImport(Interop.Libraries.Crypt32, SetLastError = true)]
+ [DllImport(Interop.Libraries.Crypt32, CharSet = CharSet.Unicode, SetLastError = true)]
internal static extern bool CertFreeCertificateContext(IntPtr pCertContext);
}
}
private static extern bool CertVerifyCertificateChainPolicy(IntPtr pszPolicyOID, SafeX509ChainHandle pChainContext, [In] ref CERT_CHAIN_POLICY_PARA pPolicyPara, [In, Out] ref CERT_CHAIN_POLICY_STATUS pPolicyStatus);
[DllImport(Libraries.Crypt32, CharSet = CharSet.Unicode, SetLastError = true)]
- public static extern bool CertFreeCertificateContext(IntPtr pCertContext);
-
- [DllImport(Libraries.Crypt32, CharSet = CharSet.Unicode, SetLastError = true)]
public static extern bool CertCloseStore(IntPtr hCertStore, int dwFlags);
[DllImport(Libraries.Crypt32, CharSet = CharSet.Unicode, SetLastError = true)]
}
else
{
- Interop.crypt32.CertFreeCertificateContext(handle);
+ Interop.Crypt32.CertFreeCertificateContext(handle);
}
SetHandle(IntPtr.Zero);
<Compile Include="Internal\Cryptography\Pal.Windows\X509Pal.PublicKey.cs" />
<Compile Include="Internal\Cryptography\Pal.Windows\X509Pal.X500DistinguishedName.cs" />
<Compile Include="Microsoft\Win32\SafeHandles\SafePasswordHandle.Windows.cs" />
+ <Compile Include="$(CommonPath)\Interop\Windows\Crypt32\Interop.CertFreeCertificateContext.cs">
+ <Link>Common\Interop\Windows\Crypt32\Interop.CertFreeCertificateContext.cs</Link>
+ </Compile>
<Compile Include="$(CommonPath)\Interop\Windows\Crypt32\Interop.FindOidInfo.cs">
<Link>Common\Interop\Windows\Crypt32\Interop.FindOidInfo.cs</Link>
</Compile>