credential_pwd_set_password()

Update the credential password.

Synopsis:

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

Since:

BlackBerry 10.3.1

Arguments:

cred

The password-based credential to update.

password

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

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 credential with the new password.

You must invoke credential_pwd_update() to persist the changes.

Returns:

0 if operation was successful, error code otherwise.