From: Paul Park Date: Thu, 27 Jul 1995 19:51:36 +0000 (+0000) Subject: Cast mit_des_ecb_encrypt args correctly X-Git-Tag: krb5-1.0-beta6~1471 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=52e995ccfe864ef9f2c0bb9362cd70d43ef6e413;p=krb5.git Cast mit_des_ecb_encrypt args correctly git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6349 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/des425/des.c b/src/lib/des425/des.c index b044acc41..482f94875 100644 --- a/src/lib/des425/des.c +++ b/src/lib/des425/des.c @@ -58,7 +58,10 @@ 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(clear, cipher, schedule, encrypt)); + return (mit_des_ecb_encrypt((mit_des_cblock *) clear, + (mit_des_cblock *) cipher, + schedule, + encrypt)); } diff --git a/src/lib/des425/verify.c b/src/lib/des425/verify.c index 194c6c24f..7be470d21 100644 --- a/src/lib/des425/verify.c +++ b/src/lib/des425/verify.c @@ -236,7 +236,7 @@ main(argc,argv) printf("\t\t\t68 37 88 49 9a 7c 05 f6\n"); printf("ACTUAL CBC\n\tclear \"%s\"\n",input); - in_length = strlen(input); + in_length = strlen((char *) input); des_cbc_encrypt(input,cipher_text,(long) in_length,KS,ivec,1); printf("\tciphertext = (low to high bytes)\n"); for (i = 0; i <= 7; i++) { @@ -262,7 +262,7 @@ main(argc,argv) printf("\tchecksum\t58 d2 e7 7e 86 06 27 33, "); printf("or some part thereof\n"); input = clear_text2; - des_cbc_cksum(input,cipher_text,(long) strlen(input),KS,ivec,1); + des_cbc_cksum(input,cipher_text,(long) strlen((char *) input),KS,ivec,1); printf("ACTUAL CBC checksum\n"); printf("\t\tencrypted cksum = (low to high bytes)\n\t\t"); for (j = 0; j<=7; j++)