From a0108be076a8c009f787b41103028f7ef074eaab Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 9 Nov 1994 05:11:38 +0000 Subject: [PATCH] Set the keyblock's magic number and encryption type information appropriately git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4650 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/ChangeLog | 5 +++++ src/lib/kdb/fetch_mkey.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index 3839722ce..be5a24aae 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -1,3 +1,8 @@ +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 + number and encryption type information appropriately. + Sat Oct 22 10:13:25 1994 (tytso@rsx-11) * kdb_dbm.c: Don't need to define POSIX_FILE_LOCKS; just include diff --git a/src/lib/kdb/fetch_mkey.c b/src/lib/kdb/fetch_mkey.c index 9c4b6ed8a..3c9151a67 100644 --- a/src/lib/kdb/fetch_mkey.c +++ b/src/lib/kdb/fetch_mkey.c @@ -108,6 +108,8 @@ OLDDECLARG(krb5_keyblock *,key) FILE *kf; retval = 0; + key->magic = KV5M_KEYBLOCK; + key->etype = eblock->crypto_entry->proto_enctype; (void) strcpy(defkeyfile, DEFAULT_KEYFILE_STUB); (void) strncat(defkeyfile, realm->data, min(sizeof(defkeyfile)-sizeof(DEFAULT_KEYFILE_STUB)-1, -- 2.26.2