Create a clone of the given credential.
#include <sys/credential/credential_store.h>
int credential_clone(const credential_t *cred,
credential_t **clone)
BlackBerry 10.3.1
The credential to clone.
On return, a pointer to a cloned credential. You must call credential_release() to release this structure when you're done using it.
This function allocates a new credential_t structure, and initializes a deep copy of the attributes of the given credential.
Changes to a cloned credential will not be reflected in the original, and vice versa.
0 if operation was successful, error code otherwise.