From 341f28899ccdb32e9a7de17436b30e8a33eee89e Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Fri, 23 Aug 1996 03:18:47 +0000 Subject: [PATCH] * new_rnd_key.c (des_set_sequence_number): Change cast from krb5_octet to char * to match prototype. * des.c (des_ecb_encrypt): Add const keyword in cast to make suncc happy. The sun C compiler gets upset if we cast and are missing a const or we to unsigned char * vs char *.... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8969 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/des425/ChangeLog | 8 ++++++++ src/lib/des425/des.c | 2 +- src/lib/des425/new_rnd_key.c | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/des425/ChangeLog b/src/lib/des425/ChangeLog index ccc4f1853..c0c8faa43 100644 --- a/src/lib/des425/ChangeLog +++ b/src/lib/des425/ChangeLog @@ -1,3 +1,11 @@ +Wed Aug 7 12:50:36 1996 Ezra Peisach + + * new_rnd_key.c (des_set_sequence_number): Change cast to + krb5_octet to char *. + + * des.c (des_ecb_encrypt): Add const keyword in cast to make + suncc happy. + Tue May 21 20:42:16 1996 Sam Hartman * Makefile.in (check-unix): Use KRB5_RUN_FLAGS diff --git a/src/lib/des425/des.c b/src/lib/des425/des.c index 482f94875..12e8c3ea7 100644 --- a/src/lib/des425/des.c +++ b/src/lib/des425/des.c @@ -58,7 +58,7 @@ des_ecb_encrypt(clear, cipher, schedule, encrypt) int encrypt; /* 0 ==> decrypt, else encrypt */ register mit_des_key_schedule schedule; /* r11 */ { - return (mit_des_ecb_encrypt((mit_des_cblock *) clear, + return (mit_des_ecb_encrypt((const mit_des_cblock FAR *) clear, (mit_des_cblock *) cipher, schedule, encrypt)); diff --git a/src/lib/des425/new_rnd_key.c b/src/lib/des425/new_rnd_key.c index 84cbc1c12..b5a367b5a 100644 --- a/src/lib/des425/new_rnd_key.c +++ b/src/lib/des425/new_rnd_key.c @@ -132,6 +132,6 @@ des_set_sequence_number(new_sequence_number) krb5_data sequence; sequence.length = sizeof(new_sequence_number); - sequence.data = (krb5_octet *)new_sequence_number; + sequence.data = (char FAR *)new_sequence_number; mit_des_set_random_sequence_number(&sequence, des425_random_state); } -- 2.26.2