Sets up the component to run properly.
If this response message generator is only going to be used to generate TTLV responses then the parameter pAltMsgPool can be set to NULL. Otherwise, the pAltMsgPool should be configured to hold larger buffers than the pPool memory pool because XML and JSON encoded KMIP responses are significantly larger than the binary TTLV format.
- Parameters
-
flags | [ in ] Set perferences for the new object. These preferences are fixed during the lifetime of the object. |
protocolVersion | [ in ] KMIP protocol version mapping {0 == 1.0, 1 == 1.1, 2 == 1.2, 3 == 1.3, 4 == 1.4} |
msgFormat | [ in ] value from p6kmip.h, P6R's Compatibility Bit Mask (e.g., KMIP_CMP_TTLV, KMIP_CMP_MSGXML) |
pErrorPath | [ in ] full path to a file where DOM component can write errors into a file |
pPool | [ in ] IO buffer pool used for message generation for TTLV encoded responses |
pAltMsgPool | [ in ] optional can be NULL, IO buffer pool used for message generation in XML and JSON since message sizes are bigger |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNoMemory | Insuffficient memory to properly initialize the component |
P6R::eAlreadyInitialized | Only one successful call to this function is allowed. |