Create a new network-based authentication scope.
#include <sys/credential/credential_net.h>
int credential_net_auth_scope_create_from_server(credential_net_protocol_mask_t protocols,
const char *server_name,
int server_port,
const char *resource_path,
credential_net_host_mask_t host_types,
credential_auth_scheme_mask_t auth_schemes,
credential_auth_scope_t **auth_scope)
BlackBerry 10.3.1
Protocols allowed in this authentication scope.
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 that contains the resource path (null-terminated). (Optional) If set to NULL, then any resource path is allowed.
The types of network host that are allowed in this authentication scope.
Authentication schemes allowed in this authentication scope. If the authentication scheme is unknown use CREDENTIAL_AUTH_SCHEME_ANY or CREDENTIAL_AUTH_SCHEME_ANY_SECURE.
On return, a pointer to the network-based authentication scope structure, You must call credential_auth_scope_release() to release this structure when you're done using it. This is an optional parameter. If set to 0, then no return value is assigned.
This function allocates and initializes a new credential_auth_scope_t structure.
0 if operation was successful, error code otherwise.