credential_pwd_set_account_name()

Update the account name in a password-based credential record.

Synopsis:

#include <sys/credential/credential_pwd.h>
 
int credential_pwd_set_account_name(credential_t *cred,
                                    const char *account_name)

Since:

BlackBerry 10.3.1

Arguments:

cred

The password-based credential to update.

account_name

A UTF-8 encoded string that contains the account name.

Library:

libcredential (For the qcc command, use the -l bps option to link against this library)

Description:

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.

Returns:

0 if operation was successful, error code otherwise.