Lines Matching refs:keytab

3  * lib/krb5/keytab/kt_file.c
50 #define KRB5_KT_VNO_1 0x0501 /* krb v5, keytab version 1 (DCE compat) */
51 #define KRB5_KT_VNO 0x0502 /* krb v5, keytab version 2 (standard) */
62 int version; /* Version number of keytab */
176 * This is an implementation specific resolver. It returns a keytab id
177 * initialized with file keytab routines.
231 * "Close" a file-based keytab and invalidate the id. This means
239 * for this keytab. There are no system resources that need
255 * This is the get_entry routine for the file based keytab implementation.
256 * It opens the keytab file, and either retrieves the entry or returns
358 /* A 1.2.x keytab contains only the low 8 bits of the key
386 /* Yuck. The krb5-1.2.x keytab format only stores one byte
428 * Get the name of the file containing a file-based keytab.
435 * this file-based keytab. name is zeroed and the filename is truncated
484 "Too many keytab iterators active");
547 * ser_ktf.c - Serialize keytab file context for subsequent reopen.
588 krb5_keytab keytab;
593 if ((keytab = (krb5_keytab) arg)) {
597 * krb5_int32 for length of keytab name.
605 if (keytab->ops && keytab->ops->prefix)
606 required += (strlen(keytab->ops->prefix)+1);
609 * The keytab name is formed as follows:
614 ktdata = (krb5_ktfile_data *) keytab->data;
633 krb5_keytab keytab;
647 if ((keytab = (krb5_keytab) arg)) {
654 ktdata = (krb5_ktfile_data *) keytab->data;
664 if (keytab->ops && keytab->ops->prefix) {
665 if (asprintf(&ktname, "%s:%s", keytab->ops->prefix, fnamep) < 0)
671 /* Fill in the file-specific keytab information. */
730 krb5_keytab keytab = NULL;
747 /* Read the keytab name */
760 /* Resolve the keytab. */
761 kret = krb5_kt_resolve(kcontext, ktname, &keytab);
765 if (keytab->ops != &krb5_ktf_writable_ops
766 && keytab->ops != &krb5_ktf_ops) {
770 ktdata = (krb5_ktfile_data *) keytab->data;
796 kret = krb5_ktfileint_openw(kcontext, keytab);
798 kret = krb5_ktfileint_openr(kcontext, keytab);
802 if (fseek(KTFILEP(keytab), fpos, SEEK_SET) == -1) {
810 *argp = (krb5_pointer) keytab;
812 if (kret != 0 && keytab)
813 krb5_kt_close(kcontext, keytab);
819 * This is an implementation specific resolver. It returns a keytab id
820 * initialized with file keytab routines.
846 "Cannot change keytab with keytab iterators active");
881 "Cannot change keytab with keytab iterators active");
988 * lib/krb5/keytab/file/ktf_util.c
1018 * the keytab. There are no public functions in this file.
1021 * keytab file.
1549 * Fill in the time of day the entry was written to the keytab.
1614 * keytab entry.