compatible with what was used in the Beta 4 release (before we changed
the size of a krb5_keytype type).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5241
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri Mar 24 21:59:34 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * store_mkey.c (krb5_db_store_mkey):
+ * fetch_mkey.c (krb5_db_fetch_mkey): Hardcode the size of the
+ keytype field in the file format, to be compatible with
+ what was used in the Beta 4 release (before we changed the
+ size of a krb5_keytype type).
+
Fri Mar 24 15:13:53 1995 <tytso@rsx-11.mit.edu>
* kdb_dbm.c: Don't cast dbm_close() to void, because dbm_close is
if (!(kf = fopen(defkeyfile, "r")))
#endif
return KRB5_KDB_CANTREAD_STORED;
- if (fread((krb5_pointer) &keytype, sizeof(keytype), 1, kf) != 1) {
+ if (fread((krb5_pointer) &keytype, 1, 1, kf) != 1) {
retval = KRB5_KDB_CANTREAD_STORED;
goto errout;
}
return errno;
}
if ((fwrite((krb5_pointer) &key->keytype,
- sizeof(key->keytype), 1, kf) != 1) ||
+ 1, 1, kf) != 1) ||
(fwrite((krb5_pointer) &key->length,
sizeof(key->length), 1, kf) != 1) ||
(fwrite((krb5_pointer) key->contents,