From 5c4005a301a12ec037b5fb82b00bc346ba8f2281 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 19 Nov 1994 04:59:24 +0000 Subject: [PATCH] Add magic number to keyblock structure git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4702 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/asn.1/ChangeLog | 5 +++++ src/lib/krb5/asn.1/krb5_decode.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/lib/krb5/asn.1/ChangeLog b/src/lib/krb5/asn.1/ChangeLog index fcaaa87c0..42da5a56c 100644 --- a/src/lib/krb5/asn.1/ChangeLog +++ b/src/lib/krb5/asn.1/ChangeLog @@ -1,3 +1,8 @@ +Fri Nov 18 16:24:35 1994 Theodore Y. Ts'o (tytso@dcl) + + * krb5_decode.c (decode_krb5_encryption_key): Add magic number to + keyblock structure. + Thu Nov 10 21:51:55 1994 Theodore Y. Ts'o (tytso@dcl) * asn1_decode_k.c (asn1_decode_principal_name, diff --git a/src/lib/krb5/asn.1/krb5_decode.c b/src/lib/krb5/asn.1/krb5_decode.c index 21cde1ddb..db0ca1966 100644 --- a/src/lib/krb5/asn.1/krb5_decode.c +++ b/src/lib/krb5/asn.1/krb5_decode.c @@ -212,6 +212,8 @@ krb5_error_code decode_krb5_encryption_key(DECLARG(const krb5_data *, code), get_field((*rep)->keytype,0,asn1_decode_keytype); get_lenfield((*rep)->length,(*rep)->contents,1,asn1_decode_octetstring); end_structure(); + (*rep)->magic = KV5M_KEYBLOCK; + (*rep)->etype = ETYPE_UNKNOWN; } cleanup(); } -- 2.26.2