|
pure virtual |
Sets up the component to run properly.
Other configuration settings can be found in the p6kmip.conf file: [p6kmip-gen] logDir = "/var/log/KMIP/logs" errorStream = "kmipclient-errors.txt" uri = "/kmip"
[p6kmip-server-gen] listenPort = 65524 maxBufSize = 20000 initialBufCount = 5 growBufBy = 5
Key: "logDir" is the absolute path to an existing, writable directory, where the client can write KMIP messages and other log information. "errorStream" is a file name in the logDir where the XML tools can write error and warnings.
flags | [ in ] Set perferences for the new object. These preferences are fixed during the lifetime of the object. |
listenPort | [ in ] if set to zero this parameter is ignored and the port number is taken from the p6config.h file |
compatibility [ in ] A bit mask to enable functions that enhance interoperation (e.g., KMIP_CMP_DESPARITY). Bit mask values are defined at the end of the p6kmip.h file.
pCerts | [ in ] Pointer to a P6R keystore that contains certificates required by the SSL protocol for connections to a KMIP server. The passed in keystore must be openned via the p6IKeystoreInit interface before it is passed into this function. If the flags parameter does not contain the flag P6KMIPFLG_SERVER_TLS, then this parameter should be NULL since SSL is not in use. |
Success | P6R::eOk | |
Failure | P6R::eNoMemory | Insuffficient memory to properly initialize the component |
P6R::eAlreadyInitialized | Only one successful call to this function is allowed. | |
P6R::eInvalidVersion | The pVersion parameter must be set to either "1.0" or "1.1" if not NULL. |