Deletes an existing key matching the 'pNamespace pName' identifer, and then creates a new key (with the same identifer) and certificate chain in the keystore.
Replacing a key will also force the old key's certificate chain to be deleted.
- Parameters
-
pNamespace | [ in ] An identifier to separate the namespace of pName between applications |
pName | [ in ] An application defined, unique identifier for a key |
pKey | [ in ] A new key to save in the keystore |
pCertChain | [ in ] Pointer to an array of certificates that represent the pKey's certificate chain. If this parameter is NULL, then no chain is saved. |
numChain | [ in ] The number of entires in the pCertChain array. If this parameter is zero, then no chain is saved. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | One of the parameters is NULL. |
P6R::eNotInitialized | A successful call to initialize was not made before this call. |
P6R::eInvalidState | A successful call to open() was not made before this call. |
P6R::eNotFound | There is no keystore entry associated with the pNamespace pName identifer. |
P6R::eTooBig | pNamespace is larger than P6KSMAXNAMESPACE or pName is larger than P6KSMAXNAME. |
P6R::eTooSmall | pNamespace or pName have length of zero. |