PstGetTrustAnchors function
Retrieves a list of certification authorities (CAs) trusted by the specified server.
Syntax
NTSTATUS WINAPI PstGetTrustAnchors( _In_ PUNICODE_STRING pTargetName, _In_ DWORD cCriteria, _In_opt_ PCCERT_SELECT_CRITERIA rgpCriteria, _Out_ PSecPkgContext_IssuerListInfoEx *ppTrustedIssuers );
Parameters
- pTargetName [in]
-
The name of the server to check.
- cCriteria [in]
-
The number of elements in the rgpCriteria array.
- rgpCriteria [in, optional]
-
A constant pointer to an array of CERT_SELECT_CRITERIA structures that specify the criteria used to select certificate chains.
- ppTrustedIssuers [out]
-
A pointer to an array of SecPkgContext_IssuerListInfoEx structures that receive the CAs trusted by the server specified by the pTargetName parameter.
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 |
|