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"
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.
- Parameters
-
flags | [ in ] Set perferences for the new object. These preferences are fixed during the lifetime of the object. |
pCerts | [ in ] Pointer to a P6R keystore that contains certificates and keys 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. When this component is running in the P6R platform then this parameter can be NULL, in which case the platform keystore is used by default. |
preferences | [ in ] Allows the caller to tailor the actions of this KMIP client |
- 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. |
P6R::eInvalidVersion | The pVersion parameter must be set to either "1.0" or "1.1" if not NULL. |