Retrieve a handle representation of the credential.
#include <sys/credential/credential_store.h>
int credential_to_handle(const credential_t *cred,
unsigned char **handle,
size_t *handle_sz)
BlackBerry 10.3.1
The credential to convert to a handle.
On return, a pointer to buffer that contains credential handle. You must call credential_util_free() to release this buffer when you're done using it.
On return, the size (in bytes) of the buffer that contains credential handle.
This function retrieves an opaque handle that uniquely identifies the given credential. The handle is returned in a newly allocated buffer.
0 if operation was successful, error code otherwise.