* new_rnd_key.c (des_set_sequence_number): Change cast from
authorEzra Peisach <epeisach@mit.edu>
Fri, 23 Aug 1996 03:18:47 +0000 (03:18 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 23 Aug 1996 03:18:47 +0000 (03:18 +0000)
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
src/lib/des425/des.c
src/lib/des425/new_rnd_key.c

index ccc4f18537cfb1357d5cc76dc53f89d93daf049e..c0c8faa43baa5484fb84b29eab241292e44a68e8 100644 (file)
@@ -1,3 +1,11 @@
+Wed Aug  7 12:50:36 1996  Ezra Peisach  <epeisach@mit.edu>
+
+       * 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  <hartmans@mit.edu>
 
        * Makefile.in (check-unix): Use KRB5_RUN_FLAGS
index 482f94875609c7ee89326e970feeb3edc439f6b3..12e8c3ea7b7902d1e00407f479dcd3047e2e887f 100644 (file)
@@ -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));
index 84cbc1c129fa76dca13de919779cd55d4d65d516..b5a367b5a6aae1aca4bf6374650292ac96453c23 100644 (file)
@@ -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);
 }