+Fri Aug 4 16:13:20 EDT 1995 Paul Park (pjpark@mit.edu)
+ * kadmin5.c - Replace explicit hand-decoded integers with macros.
+
+
Thu Aug 3 11:37:39 EDT 1995 Paul Park (pjpark@mit.edu)
* kadmin5,convert.c - Update to use new database entry format and string
conversion functions.
for (tl=dbentp->tl_data; tl; tl = tl->tl_data_next) {
switch (tl->tl_data_type) {
case KRB5_TL_LAST_PWD_CHANGE:
- *(((krb5_octet *) (&now))) = tl->tl_data_contents[0];
- *(((krb5_octet *) (&now)) + 1) = tl->tl_data_contents[1];
- *(((krb5_octet *) (&now)) + 2) = tl->tl_data_contents[2];
- *(((krb5_octet *) (&now)) + 3) = tl->tl_data_contents[3];
+ krb5_kdb_decode_int32(tl->tl_data_contents, now);
printf(db_print_4_fmt, abs2string(now));
break;
case KRB5_TL_MOD_PRINC:
- *(((krb5_octet *) (&now))) = tl->tl_data_contents[0];
- *(((krb5_octet *) (&now)) + 1) = tl->tl_data_contents[1];
- *(((krb5_octet *) (&now)) + 2) = tl->tl_data_contents[2];
- *(((krb5_octet *) (&now)) + 3) = tl->tl_data_contents[3];
+ krb5_kdb_decode_int32(tl->tl_data_contents, now);
printf(db_print_7_fmt, &tl->tl_data_contents[4], abs2string(now));
break;
default: