Register any type of key managed object (e.g., wrapped, unwrapped, tranparent, symmetric.
public/private etc.) with the connected KMIP server. The orgin of the key comes from the calling application. The key data can be wrapped or in the clear.
- Parameters
-
key | [ in ] the group of parameters specific to the register key operation |
pRegResult | [ out ] P6KMIP_NEWOBJECT containing a new unique identifier of the registered object and any new attributes that the server wants to return. |
pResult | [ out ] Server returned status indicators |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to intialize() must be made before calling this function. |
P6R::eNotConn | A successful call to open() is required before this function is called. |
P6R::eInvalidArg | One of the pointers is NULL. |
P6R::eFormatError | Parsing error occurred while parsing a KMIP server response. |
P6R::eTooBig | Message returned by server is too big to fit in configured buffers. |
P6R::eTooSmall | The configured buffer size in P6KMIP_PREF.maxBufferSize is too small to hold the request message. |
P6R::eWrongClass | The type of the key does not match the requested key format (e.g., RSA key in RAW format instead of PKCS1, PKCS8, or transparent) |