Lines Matching refs:cursor
794 krb5_cc_cursor cursor; in krb5_cc_retrieve_cred() local
801 ret = krb5_cc_start_seq_get(context, id, &cursor); in krb5_cc_retrieve_cred()
804 while((ret = krb5_cc_next_cred(context, id, &cursor, creds)) == 0){ in krb5_cc_retrieve_cred()
811 krb5_cc_end_seq_get(context, id, &cursor); in krb5_cc_retrieve_cred()
845 krb5_cc_cursor *cursor) in krb5_cc_start_seq_get() argument
847 return (*id->ops->get_first)(context, id, cursor); in krb5_cc_start_seq_get()
863 krb5_cc_cursor *cursor, in krb5_cc_next_cred() argument
866 return (*id->ops->get_next)(context, id, cursor, creds); in krb5_cc_next_cred()
879 krb5_cc_cursor *cursor) in krb5_cc_end_seq_get() argument
881 return (*id->ops->end_get)(context, id, cursor); in krb5_cc_end_seq_get()
962 krb5_cc_cursor cursor; in krb5_cc_copy_match_f() local
977 ret = krb5_cc_start_seq_get(context, from, &cursor); in krb5_cc_copy_match_f()
983 while ((ret = krb5_cc_next_cred(context, from, &cursor, &cred)) == 0) { in krb5_cc_copy_match_f()
993 krb5_cc_end_seq_get(context, from, &cursor); in krb5_cc_copy_match_f()
1097 krb5_cc_cursor cursor; member
1117 krb5_cc_cache_cursor *cursor) in krb5_cc_cache_get_first() argument
1141 *cursor = calloc(1, sizeof(**cursor)); in krb5_cc_cache_get_first()
1142 if (*cursor == NULL) in krb5_cc_cache_get_first()
1145 (*cursor)->ops = ops; in krb5_cc_cache_get_first()
1147 ret = ops->get_cache_first(context, &(*cursor)->cursor); in krb5_cc_cache_get_first()
1149 free(*cursor); in krb5_cc_cache_get_first()
1150 *cursor = NULL; in krb5_cc_cache_get_first()
1172 krb5_cc_cache_cursor cursor, in krb5_cc_cache_next() argument
1175 return cursor->ops->get_cache_next(context, cursor->cursor, id); in krb5_cc_cache_next()
1189 krb5_cc_cache_cursor cursor) in krb5_cc_cache_end_seq_get() argument
1192 ret = cursor->ops->end_cache_get(context, cursor->cursor); in krb5_cc_cache_end_seq_get()
1193 cursor->ops = NULL; in krb5_cc_cache_end_seq_get()
1194 free(cursor); in krb5_cc_cache_end_seq_get()
1218 krb5_cccol_cursor cursor; in krb5_cc_cache_match() local
1225 ret = krb5_cccol_cursor_new (context, &cursor); in krb5_cc_cache_match()
1229 while (krb5_cccol_cursor_next(context, cursor, &cache) == 0 && cache != NULL) { in krb5_cc_cache_match()
1261 krb5_cccol_cursor_free(context, &cursor); in krb5_cc_cache_match()
1478 krb5_cc_cache_cursor cursor; member
1494 krb5_cccol_cursor_new(krb5_context context, krb5_cccol_cursor *cursor) in krb5_cccol_cursor_new() argument
1496 *cursor = calloc(1, sizeof(**cursor)); in krb5_cccol_cursor_new()
1497 if (*cursor == NULL) in krb5_cccol_cursor_new()
1499 (*cursor)->idx = 0; in krb5_cccol_cursor_new()
1500 (*cursor)->cursor = NULL; in krb5_cccol_cursor_new()
1524 krb5_cccol_cursor_next(krb5_context context, krb5_cccol_cursor cursor, in krb5_cccol_cursor_next() argument
1531 while (cursor->idx < context->num_cc_ops) { in krb5_cccol_cursor_next()
1533 if (cursor->cursor == NULL) { in krb5_cccol_cursor_next()
1535 context->cc_ops[cursor->idx]->prefix, in krb5_cccol_cursor_next()
1536 &cursor->cursor); in krb5_cccol_cursor_next()
1538 cursor->idx++; in krb5_cccol_cursor_next()
1542 ret = krb5_cc_cache_next(context, cursor->cursor, cache); in krb5_cccol_cursor_next()
1546 krb5_cc_cache_end_seq_get(context, cursor->cursor); in krb5_cccol_cursor_next()
1547 cursor->cursor = NULL; in krb5_cccol_cursor_next()
1551 cursor->idx++; in krb5_cccol_cursor_next()
1553 if (cursor->idx >= context->num_cc_ops) { in krb5_cccol_cursor_next()
1575 krb5_cccol_cursor_free(krb5_context context, krb5_cccol_cursor *cursor) in krb5_cccol_cursor_free() argument
1577 krb5_cccol_cursor c = *cursor; in krb5_cccol_cursor_free()
1579 *cursor = NULL; in krb5_cccol_cursor_free()
1581 if (c->cursor) in krb5_cccol_cursor_free()
1582 krb5_cc_cache_end_seq_get(context, c->cursor); in krb5_cccol_cursor_free()
1629 krb5_cccol_cursor cursor; in krb5_cccol_last_change_time() local
1636 ret = krb5_cccol_cursor_new (context, &cursor); in krb5_cccol_last_change_time()
1640 while (krb5_cccol_cursor_next(context, cursor, &id) == 0 && id != NULL) { in krb5_cccol_last_change_time()
1653 krb5_cccol_cursor_free(context, &cursor); in krb5_cccol_last_change_time()
1734 krb5_cc_cursor cursor; in krb5_cc_get_lifetime() local
1758 ret = krb5_cc_start_seq_get(context, id, &cursor); in krb5_cc_get_lifetime()
1764 while ((ret = krb5_cc_next_cred(context, id, &cursor, &cred)) == 0) { in krb5_cc_get_lifetime()
1799 krb5_cc_end_seq_get(context, id, &cursor); in krb5_cc_get_lifetime()