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
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to initialize must be called before this function. |
P6R::eInvalidArg | pBuffer is equal to NULL or cBuffer is set to zero. |
P6R::eFailAndException | eFail and error details can be obtained by a call to the runtime function: p6GetErrorInfo() |