Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Verifies the validity of an Authenticode XrML license.
Syntax
HRESULT CertVerifyAuthenticodeLicense (
[in] PCRYPT_DATA_BLOB pLicenseBlob,
[in] OPTIONAL DWORD dwFlags,
[out] PAXL_AUTHENTICODE_SIGNER_INFO pSignerInfo,
[out] PAXL_AUTHENTICODE_TIMESTAMPER_INFO pTimestamperInfo
);
Parameters
pLicenseBlob
[in] The Authenticode XrML license to be verified.
See the CRYPTOAPI_BLOB structure.
dwFlags
[in] Optional. A combination of following values:
AXL_REVOCATION_NO_CHECK
AXL_REVOCATION_CHECK_END_CERT_ONLY
AXL_REVOCATION_CHECK_ENTIRE_CHAIN
AXL_URL_CACHE_ONLY_RETRIEVAL
AXL_LIFETIME_SIGNING
AXL_TRUST_MICROSOFT_ROOT_ONLY
pSignerInfo
[out] To receive the signer's information. If the license wasn't signed, dwError
is set to TRUST_E_NOSIGNATURE. It is the caller's responsibility to free resources by using the CertFreeAuthenticodeSignerInfo function after use.
See AXL_AUTHENTICODE_SIGNER_INFO Structure.
pTimestamperInfo
[out] To receive time stamper's information, if available. If the license was not time-stamped, dwError
is set to TRUST_E_NOSIGNATURE. It is the caller's responsibility to free resources by using the CertFreeAuthenticodeTimestamperInfo function after use.
See AXL_AUTHENTICODE_TIMESTAMPER_INFO Structure.
Return Value
Returns S_OK
if successful. Otherwise, returns an error code.
Requirements
Assembly: clr.dll