credential_query_set_user_prompt_policy()

Set the user prompt policy for the given input query.

Synopsis:

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

Since:

BlackBerry 10.3.1

Arguments:

query

The query to update.

policy

The user prompt policy to apply.

Library:

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

Description:

This function sets the user prompt policy that should be enforced if the query fails to retrieve any existing credentials.

By default, the query will use CREDENTIAL_USER_PROMPT_POLICY_ALLOW. This implies that if target query does not find existing credentials, the user may be prompted.

Returns:

0 if operation was successful, error code otherwise.