credential_add_auth_scope()

Associate an authentication scope with given credential.

Synopsis:

#include <sys/credential/credential_auth.h>
 
int credential_add_auth_scope(const credential_t *cred,
                              const credential_auth_scope_t *auth_scope)

Since:

BlackBerry 10.3.1

Arguments:

cred

The credential to associate with authentication scope.

auth_scope

The authentication scope to associate with credential. The caller continues to own the memory for this structure.

Library:

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

Description:

Adds an authentication scope to given credential, so that the credential can be retrieved using queries initialized from a matching authentication scope.

Returns:

0

if operation was successful, error code otherwise.