Retrieve the password of a credential.
#include <sys/credential/credential_pwd.h>
int credential_pwd_get_password(const credential_t *cred,
char **password)
BlackBerry 10.3.1
The password-based credential.
On return, a pointer to a string containing password. The string is UTF-8 encoded and null-terminated. You must call credential_util_free() to release this string when you're done using it.
This function retrieves and returns the password from the given credential. The password is returned in a newly allocated buffer.
0 if operation was successful, error code otherwise.