Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IGenCerts::verifyCertificate ( p6ICert pCertificate,
p6ICert **  pCertChain,
P6UINT32  numChain,
const P6WCHAR pCrlFile 
)
pure virtual

This function is used to verify that the Certificate file has been generated by the CA in question and that it has not be since revoked (i.e., it can be trusted).

All files must be in PEM format.

Parameters
pCertificate[ in ] The certificate to verify by validating the CA's signature.
pCertChain[ in ] An array of one or more certificate in the chain of certificates to the CA's certificate
numChain[ in ] The number of p6ICert components in the pCertChain list
pCrlFile[ in ] The Certificate Revocation List from the CA, this parameter can be NULL.
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eFailAndExceptionThe certificate verification failed. Exception record provides detailed error info.
P6R::eInvalidArgpCertifcate or pCertChain are NULL, or numChain is zero.