+2001-06-06 Ezra Peisach <epeisach@mit.edu>
+
+ * test.c (print_key): Pass in des_cblock* instead of char *.
+ (krb5_print_keyblock): Cast argument to C_Block_print to des_cblock *.
+ (krb4_print_ticket): For printf formats expecting a long, cast
+ arguments as such.
+
2001-06-05 Ken Raeburn <raeburn@mit.edu>
* configure.in: Check for unistd.h.
static
void print_key(msg, key)
char *msg;
- char *key;
+ des_cblock *key;
{
printf("%s: ", msg);
C_Block_print(key);
printf("%s: Keytype: %d\n", msg, key->enctype);
printf("%s: Length: %d\n", msg, key->length);
printf("%s: Key: ", msg);
- C_Block_print(key->contents);
+ C_Block_print((des_cblock *) key->contents);
printf("\n");
}
krb5_print_times("Times", &creds->times);
printf("is_skey: %s\n", creds->is_skey ? "True" : "False");
printf("Flags: 0x%08x\n", creds->ticket_flags);
+#if 0
krb5_print_addrs(creds->addresses);
+#endif
krb5_print_ticket(context, &creds->ticket, secret_key);
/* krb5_print_ticket(context, &creds->second_ticket, secret_key); */
}
}
printf("Ticket: Client: %s.%s@%s\n", pname, pinst, prealm);
printf("Ticket: Service: %s.%s\n", sname, sinst);
- printf("Ticket: Address: %08lx\n", addr);
+ printf("Ticket: Address: %08lx\n", (long) addr);
print_key("Ticket: Session Key", (char *) session_key);
printf("Ticket: Lifetime: %d\n", life);
- printf("Ticket: Issue Date: %ld, %s", issue_time, ctime((time_t *)
- &issue_time));
+ printf("Ticket: Issue Date: %ld, %s", (long) issue_time,
+ ctime((time_t *) &issue_time));
}
static