Set the encryption type before decrypting
authorEzra Peisach <epeisach@mit.edu>
Sat, 9 Sep 1995 19:05:42 +0000 (19:05 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sat, 9 Sep 1995 19:05:42 +0000 (19:05 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6745 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/ChangeLog
src/lib/kdb/decrypt_key.c

index 18218a3968fa74026c12bb166beb048b31c376eb..dfe27fd23807f3c3abb8478a2ac7932f023add9f 100644 (file)
@@ -1,3 +1,8 @@
+Sat Sep  9 14:53:39 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * decrypt_key.c (krb5_dbekd_decrypt_key_data): Set the encryption
+               type before decrypting.
+
 Fri Sep  8 19:52:34 1995  Ezra Peisach  (epeisach@dcl)
 
        * decrypt_key.c: Upon error, after freeing contents field, set to
index f6847eb8354208a7123049c1232dbdd629763fc6..e7128c9dcc8b1cb884be372dcbf2b5486dca013f 100644 (file)
@@ -47,6 +47,8 @@ krb5_dbekd_decrypt_key_data(context, eblock, key_data, keyblock, keysalt)
     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)