Return the next credential of an iteration.
#include <sys/credential/credential_store.h>
int credential_iterator_next(credential_iterator_t *iter,
credential_t **cred)
BlackBerry 10.3.1
Credential iteration.
On return, a pointer to the next credential in iteration. If no more credentials are available, then this pointer will be set to 0. The memory for the returned credential is owned by the credential iterator. If you need a private copy of the credential, call credential_clone() to create a copy.
This function queries the credential iterator and returns the next available credential. The returned credential is owned by the credential iterator and its memory will be released when the credential iterator is released.
0 if operation was successful, error code otherwise.