credential_pwd_get_account_name()

Retrieve account name from the password-based credentials.

Synopsis:

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

Since:

BlackBerry 10.3.1

Arguments:

cred

Password-based credentials record.

account_name

On return, a pointer a string containing account name. 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.

Library:

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

Description:

This function retrieves and returns the account name for the given password-based credential. The account name is returned in a newly allocated buffer.

Returns:

0 if operation was successful, error code otherwise.