Lines Matching refs:entry

53  *    krb5_timestamp timestamp;    time entry written to keytable
62 krb5_keytab_entry *entry;
163 krb5_kt_free_entry(NULL, cursor->entry);
164 free(cursor->entry);
334 * There is no need to lock the entry while performing
352 krb5_kt_free_entry(context, cursor->entry);
353 free(cursor->entry);
378 * It either retrieves the entry or returns an error.
387 krb5_keytab_entry *entry, *match = NULL;
396 for (cursor = KTLINK(id); cursor && cursor->entry; cursor = cursor->next) {
397 entry = cursor->entry;
401 if (!krb5_principal_compare(context, principal, entry->principal))
408 entry->key.enctype,
410 /* we can't determine the enctype of the entry */
420 match = entry;
421 else if (entry->vno > match->vno)
422 match = entry;
424 if (entry->vno == kvno) {
425 match = entry;
433 /* if we found an entry that matches, ... */
501 krb5_mkt_get_next(krb5_context context, krb5_keytab id, krb5_keytab_entry *entry, krb5_kt_cursor *cursor)
515 entry->magic = mkt_cursor->entry->magic;
516 entry->timestamp = mkt_cursor->entry->timestamp;
517 entry->vno = mkt_cursor->entry->vno;
518 entry->key = mkt_cursor->entry->key;
519 err = krb5_copy_keyblock_contents(context, &(mkt_cursor->entry->key),
520 &(entry->key));
522 err = krb5_copy_principal(context, mkt_cursor->entry->principal,
523 &(entry->principal));
547 krb5_mkt_add(krb5_context context, krb5_keytab id, krb5_keytab_entry *entry)
561 cursor->entry = (krb5_keytab_entry *)malloc(sizeof(krb5_keytab_entry));
562 if (cursor->entry == NULL) {
567 cursor->entry->magic = entry->magic;
568 cursor->entry->timestamp = entry->timestamp;
569 cursor->entry->vno = entry->vno;
570 err = krb5_copy_keyblock_contents(context, &(entry->key),
571 &(cursor->entry->key));
573 free(cursor->entry);
578 err = krb5_copy_principal(context, entry->principal, &(cursor->entry->principal));
580 krb5_free_keyblock_contents(context, &(cursor->entry->key));
581 free(cursor->entry);
604 krb5_mkt_remove(krb5_context context, krb5_keytab id, krb5_keytab_entry *entry)
619 if ( (*pcursor)->entry->vno == entry->vno &&
620 (*pcursor)->entry->key.enctype == entry->key.enctype &&
621 krb5_principal_compare(context, (*pcursor)->entry->principal, entry->principal))
630 krb5_kt_free_entry(context, (*pcursor)->entry);
631 free((*pcursor)->entry);