Finish the encoding of a KMIP request message.
A successful startRequestMessage and at least one of the add calls must be called first. This function generates the KIMP message bytes that need to be sent to a KIMP server to perform a Create operation. After a successful call to this function the caller should call getBufPtr to get a pointer to the buffer containing the message.
- Returns
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to intialize() must be made before calling this funciton. |
P6R::eTooSmall | The configured buffer size in pPool is too small to hold the generated message. |
P6R::eInvalidState | A successful call to startRequestMsg() must be made before calling this function. |
P6R::eFormatError | One or more calls to an addXXXRequest function (e.g., addCreateRequest) must be made before calling this function. |