credential_query_set_provider_policy()

Set the provider policy that should be enforced.

Synopsis:

#include <sys/credential/credential_policy.h>
 
int credential_query_set_provider_policy(credential_query_t *query,
                                         credential_provider_policy_mask_t policy)

Since:

BlackBerry 10.3.1

Arguments:

query

The query to update.

policy

The provider policy to apply.

Library:

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

Description:

Specify which provider operations are permitted when the input query is executed.

By default, the query will use CREDENTIAL_PROVIDER_POLICY_ALLOW_ADD | CREDENTIAL_PROVIDER_POLICY_ALLOW_UPDATE for password-based credentials and CREDENTIAL_PROVIDER_POLICY_DISALLOW_ALL for certificate-based credentials.

Returns:

0 if operation was successful, error code otherwise.