Lines Matching refs:cursor

67     krb5_cc_cursor cursor;
79 ret = krb5_cc_start_seq_get(context, id, &cursor);
83 while((ret = krb5_cc_next_cred(context, id, &cursor, &creds)) == 0){
91 ret = krb5_cc_end_seq_get(context, id, &cursor);
716 krb5_cc_cursor cursor;
723 ret = krb5_cc_start_seq_get(context, id, &cursor);
726 while((ret = krb5_cc_next_cred(context, id, &cursor, creds)) == 0){
733 krb5_cc_end_seq_get(context, id, &cursor);
755 * Start iterating over `id', `cursor' is initialized to the
756 * beginning. Caller must free the cursor with krb5_cc_end_seq_get().
767 krb5_cc_cursor *cursor)
769 return (*id->ops->get_first)(context, id, cursor);
773 * Retrieve the next cred pointed to by (`id', `cursor') in `creds'
774 * and advance `cursor'.
785 krb5_cc_cursor *cursor,
788 return (*id->ops->get_next)(context, id, cursor, creds);
792 * Destroy the cursor `cursor'.
801 krb5_cc_cursor *cursor)
803 return (*id->ops->end_get)(context, id, cursor);
884 krb5_cc_cursor cursor;
899 ret = krb5_cc_start_seq_get(context, from, &cursor);
905 while ((ret = krb5_cc_next_cred(context, from, &cursor, &cred)) == 0) {
915 krb5_cc_end_seq_get(context, from, &cursor);
1011 krb5_cc_cursor cursor;
1020 * @param cursor cursor should be freed with krb5_cc_cache_end_seq_get().
1031 krb5_cc_cache_cursor *cursor)
1055 *cursor = calloc(1, sizeof(**cursor));
1056 if (*cursor == NULL) {
1061 (*cursor)->ops = ops;
1063 ret = ops->get_cache_first(context, &(*cursor)->cursor);
1065 free(*cursor);
1066 *cursor = NULL;
1072 * Retrieve the next cache pointed to by (`cursor') in `id'
1073 * and advance `cursor'.
1076 * @param cursor the iterator cursor, returned by krb5_cc_cache_get_first()
1088 krb5_cc_cache_cursor cursor,
1091 return cursor->ops->get_cache_next(context, cursor->cursor, id);
1095 * Destroy the cursor `cursor'.
1105 krb5_cc_cache_cursor cursor)
1108 ret = cursor->ops->end_cache_get(context, cursor->cursor);
1109 cursor->ops = NULL;
1110 free(cursor);
1134 krb5_cccol_cursor cursor;
1140 ret = krb5_cccol_cursor_new (context, &cursor);
1144 while (krb5_cccol_cursor_next (context, cursor, &cache) == 0 && cache != NULL) {
1161 krb5_cccol_cursor_free(context, &cursor);
1372 krb5_cc_cache_cursor cursor;
1376 * Get a new cache interation cursor that will interate over all
1380 * @param cursor passed into krb5_cccol_cursor_next() and free with krb5_cccol_cursor_free().
1388 krb5_cccol_cursor_new(krb5_context context, krb5_cccol_cursor *cursor)
1390 *cursor = calloc(1, sizeof(**cursor));
1391 if (*cursor == NULL) {
1395 (*cursor)->idx = 0;
1396 (*cursor)->cursor = NULL;
1405 * @param cursor the iteration cursor
1406 * @param cache the returned cursor, pointer is set to NULL on failure
1420 krb5_cccol_cursor_next(krb5_context context, krb5_cccol_cursor cursor,
1427 while (cursor->idx < context->num_cc_ops) {
1429 if (cursor->cursor == NULL) {
1431 context->cc_ops[cursor->idx]->prefix,
1432 &cursor->cursor);
1434 cursor->idx++;
1438 ret = krb5_cc_cache_next(context, cursor->cursor, cache);
1442 krb5_cc_cache_end_seq_get(context, cursor->cursor);
1443 cursor->cursor = NULL;
1447 cursor->idx++;
1449 if (cursor->idx >= context->num_cc_ops) {
1462 * @param cursor the iteration cursor to be freed.
1471 krb5_cccol_cursor_free(krb5_context context, krb5_cccol_cursor *cursor)
1473 krb5_cccol_cursor c = *cursor;
1475 *cursor = NULL;
1477 if (c->cursor)
1478 krb5_cc_cache_end_seq_get(context, c->cursor);
1525 krb5_cccol_cursor cursor;
1532 ret = krb5_cccol_cursor_new (context, &cursor);
1536 while (krb5_cccol_cursor_next(context, cursor, &id) == 0 && id != NULL) {
1549 krb5_cccol_cursor_free(context, &cursor);
1629 krb5_cc_cursor cursor;
1637 ret = krb5_cc_start_seq_get(context, id, &cursor);
1641 while ((ret = krb5_cc_next_cred(context, id, &cursor, &cred)) == 0) {
1651 krb5_cc_end_seq_get(context, id, &cursor);