From: Theodore Tso Date: Sat, 19 Nov 1994 04:59:24 +0000 (+0000) Subject: Add magic number to keyblock structure X-Git-Tag: krb5-1.0-beta5~947 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5c4005a301a12ec037b5fb82b00bc346ba8f2281;p=krb5.git Add magic number to keyblock structure git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4702 dc483132-0cff-0310-8789-dd5450dbe970 --- 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(); }