CertFindRDNAttr function (wincrypt.h)

The CertFindRDNAttr function finds the first RDN attribute identified by its object identifier (OID) in a list of the Relative Distinguished Names (RDN).

Syntax

PCERT_RDN_ATTR CertFindRDNAttr(
  [in] LPCSTR          pszObjId,
  [in] PCERT_NAME_INFO pName
);

Parameters

[in] pszObjId

A pointer to the object identifier (OID) to use In the search.

[in] pName

A pointer to a CERT_NAME_INFO structure containing the list of the Relative Distinguished Names to be searched.

Return value

Returns a pointer to the attribute, if one is found. Otherwise, NULL is returned.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 [desktop apps | UWP apps]
Target Platform Windows
Header wincrypt.h
Library Crypt32.lib
DLL Crypt32.dll

See also

CertFindAttribute

CertFindExtension

Data Management Functions