From 835e94d28d9677fab11e87b2e3f527fa07c6002c Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 21 Jun 2001 13:41:42 +0000 Subject: [PATCH] * t_verify.c: Get rid of global variables i,j git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13442 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/des/ChangeLog | 4 ++++ src/lib/crypto/des/t_verify.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/crypto/des/ChangeLog b/src/lib/crypto/des/ChangeLog index 65742691f..0517b30ef 100644 --- a/src/lib/crypto/des/ChangeLog +++ b/src/lib/crypto/des/ChangeLog @@ -1,3 +1,7 @@ +2001-06-21 Ezra Peisach + + * t_verify.c: Get rid of global variables i,j. + 2001-06-20 Ken Raeburn * string2key.c (mit_des_string_to_key_int): Construct a krb5_data diff --git a/src/lib/crypto/des/t_verify.c b/src/lib/crypto/des/t_verify.c index 8b6efe0e0..c31b6c0d3 100644 --- a/src/lib/crypto/des/t_verify.c +++ b/src/lib/crypto/des/t_verify.c @@ -91,7 +91,6 @@ unsigned char default_ivec[8] = { }; unsigned char *ivec; unsigned char zero_key[8] = {1,1,1,1,1,1,1,1}; /* just parity bits */ -int i,j; unsigned char cipher1[8] = { 0x25,0xdd,0xac,0x3e,0x96,0x17,0x64,0x67 @@ -133,6 +132,7 @@ main(argc,argv) int in_length, retval; void do_encrypt(); void do_decrypt(); + int i, j; #ifdef WINDOWS /* Set screen window buffer to infinite size -- MS default is tiny. */ @@ -358,6 +358,7 @@ do_encrypt(in,out) char *in; char *out; { + int i, j; for (i =1; i<=nflag; i++) { mit_des_cbc_encrypt((const mit_des_cblock *)in, (mit_des_cblock *)out, @@ -382,6 +383,7 @@ do_decrypt(in,out) char *in; /* try to invert it */ { + int i, j; for (i =1; i<=nflag; i++) { mit_des_cbc_encrypt((const mit_des_cblock *)out, (mit_des_cblock *)in, -- 2.26.2