Update the account name in a password-based credential record.
#include <sys/credential/credential_pwd.h>
int credential_pwd_set_account_name(credential_t *cred,
const char *account_name)
BlackBerry 10.3.1
The password-based credential to update.
A UTF-8 encoded string that contains the account name.
This function updates the in-memory copy of the password-based credential with the new account name.
You must invoke credential_pwd_update() to persist the changes.
0 if operation was successful, error code otherwise.