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

This function loads the certificate (in DER ASN.1 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. Note that DER ASN.1 is a binary data format which can contain zeros.

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::eFailAndExceptioneFail and error details can be obtained by a call to the runtime function: p6GetErrorInfo()