Create an authentication scope from service URL.
#include <sys/credential/credential_net.h>
int credential_net_auth_scope_create_from_url(const char *url,
credential_net_host_mask_t host_types,
credential_auth_scheme_mask_t auth_schemes,
credential_auth_scope_t **auth_scope)
BlackBerry 10.3.1
The URL of the service requiring authentication (null-terminated). The URL string should be null-terminated and comply with RFC 3986.
The network host types 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 a new credential_auth_scope_t structure and populate it using data extracted from the input URL.
0 if operation was successful, error code otherwise.