This topic has not yet been rated - Rate this topic

PstValidate function

Applies to: desktop apps only

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

Minimum supported server

Windows Server 2008 R2

Header

Certpoleng.h

Library

Certpoleng.lib

DLL

Certpoleng.dll

 

 

Send comments about this topic to Microsoft

Build date: 3/13/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ