credential_pwd_set_account_label()

Update the account label in a credential record.

Synopsis:

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

Since:

BlackBerry 10.3.1

Arguments:

cred

Password-based credential to update.

account_label

A UTF-8 encoded and null-terminated string that contains the account label.

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 label.

You must invoke credential_pwd_update() to persist the account label update.

Returns:

0 if operation was successful, error code otherwise.