CryptMsgGetAndVerifySigner function
The CryptMsgGetAndVerifySigner function verifies a cryptographic message's signature.
Syntax
BOOL WINAPI CryptMsgGetAndVerifySigner( _In_ HCRYPTMSG hCryptMsg, _In_ DWORD cSignerStore, _In_opt_ HCERTSTORE *rghSignerStore, _In_ DWORD dwFlags, _Out_opt_ PCCERT_CONTEXT *ppSigner, _Inout_opt_ DWORD *pdwSignerIndex );
Parameters
- hCryptMsg [in]
-
Handle of a cryptographic message.
- cSignerStore [in]
-
Number of stores in the rghSignerStore array.
- rghSignerStore [in, optional]
-
Array of certificate store handles that can be searched for a signer's certificate.
- dwFlags [in]
-
Indicates particular use of the function.
- ppSigner [out, optional]
-
If the signature is verified, ppSigner is updated to point to the signer's certificate context. When you have finished using the certificate, free the context by calling the CertFreeCertificateContext function. This parameter can be NULL if the application has no need for the signer's certificate.
- pdwSignerIndex [in, out, optional]
-
If the signature is verified, pdwSigner is updated to point to the index of the signer in the array of signers. This parameter can be NULL if the application has no need for the index of the signer.
Return value
If the function succeeds, the return value is nonzero (TRUE).
If the function fails, the return value is zero (FALSE). For extended error information, call GetLastError.
Requirements
|
Minimum supported client |
Windows XP [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps | Windows Store apps] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also