Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Verify() [2/2]

static unsafe uint System.Net.CertificateValidation.Verify ( SafeX509ChainHandle chainContext,
ref global::Interop::Crypt32::CERT_CHAIN_POLICY_PARA cpp )
inlinestaticprivate

Definition at line 52 of file CertificateValidation.cs.

53 {
54 global::Interop.Crypt32.CERT_CHAIN_POLICY_STATUS pPolicyStatus = default(global::Interop.Crypt32.CERT_CHAIN_POLICY_STATUS);
55 pPolicyStatus.cbSize = (uint)sizeof(global::Interop.Crypt32.CERT_CHAIN_POLICY_STATUS);
56 bool flag = global::Interop.Crypt32.CertVerifyCertificateChainPolicy((IntPtr)4, chainContext, ref cpp, ref pPolicyStatus);
57 if (System.Net.NetEventSource.Log.IsEnabled())
58 {
59 System.Net.NetEventSource.Info(chainContext, $"CertVerifyCertificateChainPolicy returned: {flag}. Status: {pPolicyStatus.dwError}", "Verify");
60 }
61 return pPolicyStatus.dwError;
62 }
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)

References System.Net.NetEventSource.Info(), and System.Net.NetEventSource.Log.