credential_find()

Lookup credentials using given query.

Synopsis:

#include <sys/credential/credential_store.h>
 
int credential_find(const credential_store_t *store,
                    const credential_query_t *query,
                    credential_query_result_t **result)

Since:

BlackBerry 10.3.1

Arguments:

store

The store where you want to perform the query.

query

The query to execute.

result

On return, a pointer to query result. You must call credential_query_result_release() to release the credential structure passed as arguments to the callback. when you're done using it.

Library:

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

Description:

Using the input query values, search within Credential Manager and return all credentials which match the input criteria. Allocates a new credential_query_result_t structure and initializes with query status and any credentials returned for query.

Returns:

0 if operation was successful, error code otherwise.