Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ICertInit::loadCertFromBuffer ( P6VOID pBuffer,
P6UINT32  cBuffer 
)
pure virtual

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

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
pBuffer[ in ] Buffer holding the certificate
cBuffer[ in ] Number of data bytes in pBuffer
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize must be called before this function.
P6R::eInvalidArgpBuffer is equal to NULL or cBuffer is set to zero.
P6R::eNoMemoryInsufficient available memory to copy the certificate from pBuffer.
P6R::eInvalidCertThe given certificate is in an unsupported format or is corrupted.