Export (0) Print
Expand All
Expand Minimize

CertSetCertificateContextPropertiesFromCTLEntry function

The CertSetCertificateContextPropertiesFromCTLEntry function sets the properties on the certificate context by using the attributes in the specified certificate trust list (CTL) entry.

Syntax


BOOL WINAPI CertSetCertificateContextPropertiesFromCTLEntry(
  _In_  PCCERT_CONTEXT pCertContext,
  _In_  PCTL_ENTRY pCtlEntry,
  _In_  DWORD dwFlags
);

Parameters

pCertContext [in]

A pointer to the CERT_CONTEXT whose attributes are to be set.

pCtlEntry [in]

A pointer to the CTL_ENTRY structure used to set the attributes on the certificate.

dwFlags [in]

A DWORD. This parameter can be set to CERT_SET_PROPERTY_IGNORE_PERSIST_ERROR_FLAG to ignore any persisted error flags.

Return value

If the function succeeds, the function returns nonzero.

If the function fails, it returns zero. For extended error information, call GetLastError.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Wincrypt.h

Library

Crypt32.lib

DLL

Crypt32.dll

See also

CERT_CONTEXT
CTL_ENTRY
GetLastError

 

 

Community Additions

ADD
Show:
© 2014 Microsoft