Lines Matching refs:cursor
832 krb5_cc_cursor *cursor);
837 krb5_cc_cursor *cursor) in fcc_get_first() argument
845 *cursor = malloc(sizeof(struct fcc_cursor)); in fcc_get_first()
846 if (*cursor == NULL) { in fcc_get_first()
850 memset(*cursor, 0, sizeof(struct fcc_cursor)); in fcc_get_first()
852 ret = init_fcc(context, id, "get-frist", &FCC_CURSOR(*cursor)->sp, in fcc_get_first()
853 &FCC_CURSOR(*cursor)->fd, NULL); in fcc_get_first()
855 free(*cursor); in fcc_get_first()
856 *cursor = NULL; in fcc_get_first()
859 ret = krb5_ret_principal (FCC_CURSOR(*cursor)->sp, &principal); in fcc_get_first()
862 fcc_end_get(context, id, cursor); in fcc_get_first()
866 fcc_unlock(context, FCC_CURSOR(*cursor)->fd); in fcc_get_first()
873 krb5_cc_cursor *cursor, in fcc_get_next() argument
881 if (FCC_CURSOR(*cursor) == NULL) in fcc_get_next()
884 if((ret = fcc_lock(context, id, FCC_CURSOR(*cursor)->fd, FALSE)) != 0) in fcc_get_next()
886 FCC_CURSOR(*cursor)->cred_start = lseek(FCC_CURSOR(*cursor)->fd, in fcc_get_next()
889 ret = krb5_ret_creds(FCC_CURSOR(*cursor)->sp, creds); in fcc_get_next()
893 FCC_CURSOR(*cursor)->cred_end = lseek(FCC_CURSOR(*cursor)->fd, in fcc_get_next()
896 fcc_unlock(context, FCC_CURSOR(*cursor)->fd); in fcc_get_next()
903 krb5_cc_cursor *cursor) in fcc_end_get() argument
909 if (FCC_CURSOR(*cursor) == NULL) in fcc_end_get()
912 krb5_storage_free(FCC_CURSOR(*cursor)->sp); in fcc_end_get()
913 close (FCC_CURSOR(*cursor)->fd); in fcc_end_get()
914 free(*cursor); in fcc_end_get()
915 *cursor = NULL; in fcc_end_get()
922 krb5_cc_cursor *cursor, in cred_delete() argument
937 heim_assert(FCC_CURSOR(*cursor)->cred_start < FCC_CURSOR(*cursor)->cred_end, in cred_delete()
986 (FCC_CURSOR(*cursor)->cred_end - FCC_CURSOR(*cursor)->cred_start)) { in cred_delete()
1004 if (fstat(FCC_CURSOR(*cursor)->fd, &sb1) == -1 || in cred_delete()
1018 if (lseek(fd, FCC_CURSOR(*cursor)->cred_start, SEEK_SET) == (off_t)-1) in cred_delete()
1025 if (lseek(fd, FCC_CURSOR(*cursor)->cred_start, SEEK_SET) == (off_t)-1) in cred_delete()
1049 krb5_cc_cursor cursor; in fcc_remove_cred() local
1055 ret = krb5_cc_start_seq_get(context, id, &cursor); in fcc_remove_cred()
1058 while ((ret = krb5_cc_next_cred(context, id, &cursor, &found_cred)) == 0) { in fcc_remove_cred()
1063 cred_delete(context, id, &cursor, &found_cred); in fcc_remove_cred()
1066 ret2 = krb5_cc_end_seq_get(context, id, &cursor); in fcc_remove_cred()
1100 fcc_get_cache_first(krb5_context context, krb5_cc_cursor *cursor) in fcc_get_cache_first() argument
1110 *cursor = iter; in fcc_get_cache_first()
1115 fcc_get_cache_next(krb5_context context, krb5_cc_cursor cursor, krb5_ccache *id) in fcc_get_cache_next() argument
1117 struct fcache_iter *iter = cursor; in fcc_get_cache_next()
1154 fcc_end_cache_get(krb5_context context, krb5_cc_cursor cursor) in fcc_end_cache_get() argument
1156 struct fcache_iter *iter = cursor; in fcc_end_cache_get()