+
+Tue Aug 29 13:29:19 EDT 1995 Paul Park (pjpark@mit.edu)
+ * process_key.c, finish_key.c - Set and use priv_size in the krb5_
+ encrypt_block.
+
Thu Aug 24 18:08:42 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* f_cksum.c: Change code to match prototypes.
mit_des_finish_key (eblock)
krb5_encrypt_block FAR * eblock;
{
- memset((char *)eblock->priv, 0, sizeof(mit_des_key_schedule));
+ memset((char *)eblock->priv, 0, (size_t) eblock->priv_size);
free(eblock->priv);
eblock->priv = 0;
+ eblock->priv_size = 0;
/* free/clear other stuff here? */
return 0;
}
default:
eblock->key = (krb5_keyblock *) keyblock;
eblock->priv = (krb5_pointer) schedule;
+ eblock->priv_size = (krb5_int32) sizeof(mit_des_key_schedule);
return 0;
}
}