diff options
author | Ezra Peisach <epeisach@mit.edu> | 2001-06-21 13:41:42 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2001-06-21 13:41:42 +0000 |
commit | 835e94d28d9677fab11e87b2e3f527fa07c6002c (patch) | |
tree | fdf2b499f77d4cdf4ee34c8aa17932d70c0f275c | |
parent | 4160e3677bc44309331b2d8afc93a26f4e211184 (diff) | |
download | krb5-835e94d28d9677fab11e87b2e3f527fa07c6002c.tar.gz krb5-835e94d28d9677fab11e87b2e3f527fa07c6002c.tar.xz krb5-835e94d28d9677fab11e87b2e3f527fa07c6002c.zip |
* 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
-rw-r--r-- | src/lib/crypto/des/ChangeLog | 4 | ||||
-rw-r--r-- | src/lib/crypto/des/t_verify.c | 4 |
2 files changed, 7 insertions, 1 deletions
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 <epeisach@mit.edu> + + * t_verify.c: Get rid of global variables i,j. + 2001-06-20 Ken Raeburn <raeburn@mit.edu> * 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, |