credential_query_set_owner_type()

Set the owner type that should be used when performing query.

Synopsis:

#include <sys/credential/credential_policy.h>
 
int credential_query_set_owner_type(credential_query_t *query,
                                    credential_owner_type_t owner_type)

Since:

BlackBerry 10.3.1

Arguments:

query

The query to update.

owner_type

The owner type to restrict query to.

Library:

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

Description:

Specify the owner type that the input query should be restricted to when it is executed.

By default, the query will use CREDENTIAL_OWNER_TYPE_USER.

Returns:

0 if operation was successful, error code otherwise.