PstValidate function
Validates the specified certificate.
Syntax
NTSTATUS WINAPI PstValidate( _In_opt_ PUNICODE_STRING pTargetName, _In_ BOOL bIsClient, _In_opt_ CERT_USAGE_MATCH *pRequestedIssuancePolicy, _In_opt_ HCERTSTORE *phAdditionalCertStore, _In_ PCCERT_CONTEXT pCert, _Out_opt_ GUID *pProvGUID );
Parameters
- pTargetName [in, optional]
-
The name of the server. If the caller is not the client, this parameter is NULL.
- bIsClient [in]
-
TRUE if the caller is the client; otherwise, FALSE.
- pRequestedIssuancePolicy [in, optional]
-
A pointer to a CERT_USAGE_MATCH structure that specifies identifiers that the certificate must match to be validated.
- phAdditionalCertStore [in, optional]
-
A handle to a certificate store that contains additional certificates used for the authentication.
- pCert [in]
-
A pointer to a CERT_CONTEXT structure that specifies the certificate to validate.
- pProvGUID [out, optional]
-
A pointer to a GUID structure that receives the security support provider (SSP) used for the authentication.
Return value
If the function succeeds, return STATUS_SUCCESS.
If the function fails, return an NTSTATUS code that indicates the reason it failed.
Requirements
|
Minimum supported client |
Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|