Lines Matching refs:entry

58 	retval = krb5_kt_free_entry(context, lp->entry);
59 free((char *)lp->entry);
70 * Delete a numbered entry in a kt_list. Takes a pointer to a kt_list
95 * Create a new keytab entry and add it to the keytab list.
109 krb5_keytab_entry *entry;
143 entry = (krb5_keytab_entry *) malloc(sizeof(krb5_keytab_entry));
144 if (!entry) {
147 memset((char *) entry, 0, sizeof(*entry));
163 lp->entry = entry;
188 memcpy(&lp->entry->key, &key, sizeof(krb5_keyblock));
207 lp->entry->key.enctype = enctype;
208 lp->entry->key.contents = (krb5_octet *) malloc((strlen(buf) + 1) / 2);
209 if (!lp->entry->key.contents) {
223 lp->entry->key.contents[i++] = (krb5_octet) tmp;
225 lp->entry->key.length = i;
227 lp->entry->principal = princ;
228 lp->entry->vno = kvno;
229 lp->entry->timestamp = now;
254 krb5_keytab_entry *entry;
270 entry = (krb5_keytab_entry *)malloc(sizeof (krb5_keytab_entry));
271 if (!entry) {
275 memset((char *)entry, 0, sizeof (*entry));
276 retval = krb5_kt_next_entry(context, kt, entry, &cursor);
297 lp->entry = entry;
299 if (entry)
300 free((char *)entry);
340 retval = krb5_kt_add_entry(context, kt, lp->entry);
382 krb5_keytab_entry *entry;
400 entry = (krb5_keytab_entry *)malloc(sizeof (krb5_keytab_entry));
401 if (!entry) {
405 memset((char *)entry, 0, sizeof (*entry));
415 entry->magic = KV5M_KEYTAB_ENTRY;
416 entry->timestamp = 0; /* XXX */
417 entry->vno = kvno;
420 &entry->principal);
423 entry->key.magic = KV5M_KEYBLOCK;
424 entry->key.enctype = ENCTYPE_DES_CBC_CRC;
425 entry->key.length = sizeof (key);
426 entry->key.contents = (krb5_octet *)malloc(sizeof (key));
427 if (!entry->key.contents) {
431 memcpy((char *)entry->key.contents, (char *)key, sizeof (key));
447 lp->entry = entry;
451 if (entry) {
452 if (entry->magic == KV5M_KEYTAB_ENTRY)
453 krb5_kt_free_entry(context, entry);
454 free((char *)entry);
487 if ((lp->entry->key.enctype != ENCTYPE_DES_CBC_CRC) &&
488 (lp->entry->key.enctype != ENCTYPE_DES_CBC_MD5) &&
489 (lp->entry->key.enctype != ENCTYPE_DES_CBC_MD4) &&
490 (lp->entry->key.enctype != ENCTYPE_DES_CBC_RAW))
496 lp->entry->principal,
497 lp1->entry->principal))
500 if (!lp1) { /* need to add entry to tail of pruned list */
517 lp1->entry = lp->entry;
522 if (lp1->entry->vno > 240 || lp->entry->vno > 240) {
526 if (M(lp1->entry->vno) < M(lp->entry->vno))
527 /* Check if lp->entry is newer kvno; if so, update */
528 lp1->entry = lp->entry;
541 kvno = (unsigned char) lp->entry->vno;
543 lp->entry->principal,
551 fwrite((char *)lp->entry->key.contents,