+Fri Nov 18 15:34:35 1994 Theodore Y. Ts'o (tytso@dcl)
+
+ * ktf_util.c (krb5_ktfileint_internal_read_entry): Add magic
+ numbers for keytab, principal, and keyblock.
+
Wed Oct 26 14:41:31 1994 (tytso@rsx-11)
* ktf_get_en.c (krb5_ktfile_get_entry): If the requested kvno is
krb5_data *princ;
memset(ret_entry, 0, sizeof(krb5_keytab_entry));
+ ret_entry->magic = KV5M_KEYTAB_ENTRY;
/* fseek to synchronise buffered I/O on the key table. */
if (!ret_entry->principal)
return ENOMEM;
+ ret_entry->principal->magic = KV5M_PRINCIPAL;
ret_entry->principal->length = count;
ret_entry->principal->data = (krb5_data *)calloc(count, sizeof(krb5_data));
if (!ret_entry->principal->data) {
ret_entry->key.keytype = ntohs(ret_entry->key.keytype);
/* key contents */
+ ret_entry->key.magic = KV5M_KEYBLOCK;
+ ret_entry->key.etype = ETYPE_UNKNOWN;
+
if (!xfread(&count, sizeof(count), 1, KTFILEP(id))) {
error = KRB5_KT_END;
goto fail;