NPKI_CertChain

Contains information defining a certificate chain.

Structure

   typedef struct NPKI_CertChain
   {
        pnuint8                 cert;
        nuint32                 certLen;
        NPKI_CRL               *cRLStruct;
        nuint32                 flags;
        nuint32                 numErrors;
        NPKI_ERROR             *error;
        void                    reserved1;
        void                    reserved2;
        struct NPKI_CertChain  *next;
   }NPKI_CertChain;
   
   

Fields

cert
Points to the certificate.
certLen
Specifies the length in bytes of the certificate.
cRLStruct
Optional, not supported yet. Pass in NULL.
flags
Future use, pass in NULL.
numErrors
Future use, set to zero.
error
Future use, set to NULL.
reserved1
Future use, set to NULL.
reserved2
Future use, set to NULL.
next
Points to the next NPKI_CertChain structure containing the next certificate in the chain.

Remarks

This structure is used to pass a certificate chain to NPKIT_VerifyCertChain and is used in the certificateChain field of the structure Section 4.5, NPKI_VerifyCallBackStruct Flag Values“. The certificates in the certificate chain need to be in order, leaf to root.