From 1a23f72c755bf298b0c8ac8b0991d13ac9757e9f Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 17 Nov 1994 07:10:36 +0000 Subject: [PATCH] Set the keyblock's magic number and ecryption type information appropriately git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4671 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/ChangeLog | 5 +++++ src/lib/kdb/decrypt_key.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index be5a24aae..a5b1d7dfe 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -1,3 +1,8 @@ +Thu Nov 10 17:20:42 1994 Theodore Y. Ts'o (tytso@dcl) + + * decrypt_key.c (krb5_kdb_decrypt_key): Set the keyblock's magic + number and ecryption type information appropriately. + Tue Nov 8 18:03:23 1994 Theodore Y. Ts'o (tytso@dcl) * fetch_mkey.c (krb5_db_fetch_mkey): Set the keyblock's magic diff --git a/src/lib/kdb/decrypt_key.c b/src/lib/kdb/decrypt_key.c index 20a2c20f8..a131bd66e 100644 --- a/src/lib/kdb/decrypt_key.c +++ b/src/lib/kdb/decrypt_key.c @@ -46,6 +46,8 @@ krb5_keyblock *out; /* the encrypted version is stored as the unencrypted key length (4 bytes, MSB first) followed by the encrypted key. */ + out->magic = KV5M_KEYBLOCK; + out->etype = ETYPE_UNKNOWN; out->keytype = in->keytype; out->length = krb5_encrypt_size(in->length-sizeof(in->length), eblock->crypto_entry); -- 2.26.2