Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ICertInit::loadCert ( const P6WCHAR pCertFile)
pure virtual

This function loads the certificate (in PEM format) contained in the specified file.

The format of the certificate data is verified. If the component already has a certificate loaded, it will be replaced on success, and unchanged on failure.

Parameters
pCertFile[ in ] Filesystem pathname of the certificate file.
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize must be called before this function.
P6R::eInvalidArgpCertFile is equal to NULL.
P6R::eNotFoundThe file in pCertFile cannot be found.
P6R::eInvalidCertThe given certificate is in an unsupported format or is corrupted.