NPKIChainCertInfo

Obtains a pointer to the specified X.509 certificate in a certificate chain, and the size of the certificate (formerly NWPKIChainCertInfo).

Syntax

    #include "npki.h"
    
    NWRCODE NPKIChainCertInfo(
       const NPKIContext       context, 
       const nuint32           index,
       pnuint32                certSize,
       nuint8 const          **cert,
       void                   *reserved1,
       void                   *reserved2);
    

Parameters

context
(IN) Specifies the NPKI context for the request.
index
(IN) Indicates which certificate is to be returned.

NOTE:index is 0 based.

certSize
(OUT) Specifies the certificate size.
cert
(OUT) Points to the DER-encoded X.509 certificate.
reserved1
Reserved for future use.
reserved2
Reserved for future use.

Return Values

Returns 0 if successful, or an eDirectory or PKI error code if not successful.

Remarks

A successful call to either NPKIGetCACertificates or NPKIGetServerCertificates must have been made before calling this function.

See Also