+Mon Aug 7 14:15:59 EDT 1995 Paul Park (pjpark@mit.edu)
+ * decrypt_key.c - Deserialize key length into a 16 bit integer, then
+ jam it into the keyblock.
+
+
Mon Aug 7 13:05:53 EDT 1995 Paul Park (pjpark@mit.edu)
* kdb_cpw.c(add_key_rnd) - Manually initialize krbtgt_princ.data to
point to krbtgt_princ_entries since some compilers do not
krb5_keysalt * keysalt;
{
krb5_error_code retval;
+ krb5_int16 tmplen;
krb5_octet * ptr;
keyblock->magic = KV5M_KEYBLOCK;
keyblock->length = 0;
ptr = key_data->key_data_contents[0];
- krb5_kdb_decode_int16(ptr, keyblock->length);
+ krb5_kdb_decode_int16(ptr, tmplen);
ptr += 2;
+ keyblock->length = (int) tmplen;
if ((retval = krb5_decrypt(context, (krb5_pointer) ptr,
(krb5_pointer)keyblock->contents,
key_data->key_data_length[0] - 2,