Add a server to an existing network-based authentication scope.
#include <sys/credential/credential_net.h>
int credential_net_auth_scope_add_server(credential_auth_scope_t *auth_scope,
const char *server_name,
int server_port,
const char *resource_path)
BlackBerry 10.3.1
The authentication scope you wish to update.
An ASCII encoded string that contains the server name (null-terminated).
Server port, or CREDENTIAL_NETWORK_PORT_ANY if any server port is allowed.
An ASCII string containing the resource path (null-terminated). (Optional) This is an optional parameter. If set to 0, then any resource path is allowed.
This function associates a new server to an authentication scope, where a server consists of a server name, port number, and resource path.
0 if operation was successful, error code otherwise.