Add magic number to keyblock structure
authorTheodore Tso <tytso@mit.edu>
Sat, 19 Nov 1994 04:59:24 +0000 (04:59 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 19 Nov 1994 04:59:24 +0000 (04:59 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4702 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/ChangeLog
src/lib/krb5/asn.1/krb5_decode.c

index fcaaa87c005a003e788a581c2dff5cacc907b2cc..42da5a56cfb3d7be0c3e9a1bf1978e133877ba78 100644 (file)
@@ -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,
index 21cde1ddb018fba51e97935f4584e6c4334e0b94..db0ca19669de1873e121087811ae9e8c89b1544b 100644 (file)
@@ -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();
 }