credential_net_auth_scope_add_server()

Add a server to an existing network-based authentication scope.

Synopsis:

#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)

Since:

BlackBerry 10.3.1

Arguments:

auth_scope

The authentication scope you wish to update.

server_name

An ASCII encoded string that contains the server name (null-terminated).

server_port

Server port, or CREDENTIAL_NETWORK_PORT_ANY if any server port is allowed.

resource_path

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.

Library:

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

Description:

This function associates a new server to an authentication scope, where a server consists of a server name, port number, and resource path.

Returns:

0 if operation was successful, error code otherwise.