+Wed Sep 13 15:19:17 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * fetch_mkey.c (krb5_db_fetch_mkey): This routine now sets the
+ master encblock's crypto system using krb5_use_enctype()
+ from the stored keytype of the master key.
+
+ * decrypt_key.c (krb5_dbekd_decrypt_key_data): Remove the
+ encryption type; the master_encblock should always be set
+ correctly.
+
Sat Sep 9 14:53:39 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* decrypt_key.c (krb5_dbekd_decrypt_key_data): Set the encryption
keyblock->magic = KV5M_KEYBLOCK;
keyblock->enctype = key_data->key_data_type[0];
- krb5_use_enctype(context, eblock, keyblock->enctype);
-
/* Decrypt key_data_contents */
if ((keyblock->contents = (krb5_octet *)malloc(krb5_encrypt_size(
key_data->key_data_length[0] - 2, eblock->crypto_entry))) == NULL)
if (keysalt) {
if (key_data->key_data_ver == 2) {
keysalt->type = key_data->key_data_type[1];
- if (keysalt->data.length = key_data->key_data_length[1]) {
+ if ((keysalt->data.length = key_data->key_data_length[1])) {
if (!(keysalt->data.data=(char *)malloc(keysalt->data.length))){
krb5_xfree(keyblock->contents);
keyblock->contents = 0;