Funzione CertVerifyAuthenticodeLicense

Verifica la validità di una licenza Authenticode XrML.

Sintassi

HRESULT CertVerifyAuthenticodeLicense (
    [in]   PCRYPT_DATA_BLOB                   pLicenseBlob,
    [in]   OPTIONAL DWORD                     dwFlags,
    [out]  PAXL_AUTHENTICODE_SIGNER_INFO      pSignerInfo,
    [out]  PAXL_AUTHENTICODE_TIMESTAMPER_INFO pTimestamperInfo
);

Parametri

pLicenseBlob
[in] Licenza Authenticode XrML da verificare.

Vedere la struttura CRYPTOAPI_BLOB .

dwFlags
[in] Facoltativo. Una combinazione dei valori seguenti:

  • 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] Per ricevere le informazioni del firmatario. Se la licenza non è stata firmata, dwError viene impostato su TRUST_E_NOSIGNATURE. È responsabilità del chiamante liberare le risorse usando la funzione CertFreeAuthenticodeSignerInfo dopo l'uso.

Vedere AXL_AUTHENTICODE_SIGNER_INFO Struttura.

pTimestamperInfo
[out] Per ricevere le informazioni su chi ha apposto il timestamp, se disponibili. Se alla licenza non è stato apposto alcun timestamp, dwError viene impostato su TRUST_E_NOSIGNATURE. È responsabilità del chiamante liberare le risorse usando la funzione CertFreeAuthenticodeTimestamperInfo dopo l'uso.

Vedere AXL_AUTHENTICODE_TIMESTAMPER_INFO Struttura.

Valore restituito

Se l'esito è positivo, restituisce S_OK. In caso contrario, verrà restituito un codice di errore.

Requisiti

Assembly: clr.dll

Vedi anche