Lines Matching refs:cursor

147     krb5_mkt_cursor cursor, next_cursor;
158 for (cursor = KTLINK(node->keytab); cursor; cursor = next_cursor) {
159 next_cursor = cursor->next;
163 krb5_kt_free_entry(NULL, cursor->entry);
164 free(cursor->entry);
165 free(cursor);
340 krb5_mkt_cursor cursor, next_cursor;
349 for (cursor = KTLINK(node->keytab); cursor; cursor = next_cursor) {
350 next_cursor = cursor->next;
352 krb5_kt_free_entry(context, cursor->entry);
353 free(cursor->entry);
354 free(cursor);
386 krb5_mkt_cursor cursor;
396 for (cursor = KTLINK(id); cursor && cursor->entry; cursor = cursor->next) {
397 entry = cursor->entry;
501 krb5_mkt_get_next(krb5_context context, krb5_keytab id, krb5_keytab_entry *entry, krb5_kt_cursor *cursor)
503 krb5_mkt_cursor mkt_cursor = (krb5_mkt_cursor)*cursor;
525 *cursor = (krb5_kt_cursor *)mkt_cursor->next;
535 krb5_mkt_end_get(krb5_context context, krb5_keytab id, krb5_kt_cursor *cursor)
537 *cursor = NULL;
550 krb5_mkt_cursor cursor;
556 cursor = (krb5_mkt_cursor)malloc(sizeof(krb5_mkt_link));
557 if (cursor == NULL) {
561 cursor->entry = (krb5_keytab_entry *)malloc(sizeof(krb5_keytab_entry));
562 if (cursor->entry == NULL) {
563 free(cursor);
567 cursor->entry->magic = entry->magic;
568 cursor->entry->timestamp = entry->timestamp;
569 cursor->entry->vno = entry->vno;
571 &(cursor->entry->key));
573 free(cursor->entry);
574 free(cursor);
578 err = krb5_copy_principal(context, entry->principal, &(cursor->entry->principal));
580 krb5_free_keyblock_contents(context, &(cursor->entry->key));
581 free(cursor->entry);
582 free(cursor);
587 cursor->next = NULL;
588 KTLINK(id) = cursor;
590 cursor->next = KTLINK(id);
591 KTLINK(id) = cursor;