From 1eb4cefb9f7770646c4b57ad16a7ac516da360c1 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Fri, 26 Oct 2001 15:49:47 +0000 Subject: * string_to_key.c (krb5_arcfour_string_to_key): Cleanup variables defined but not used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13865 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/arcfour/ChangeLog | 5 +++++ src/lib/crypto/arcfour/string_to_key.c | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/lib/crypto/arcfour/ChangeLog b/src/lib/crypto/arcfour/ChangeLog index 9f9cbc76a2..f3b4a5040f 100644 --- a/src/lib/crypto/arcfour/ChangeLog +++ b/src/lib/crypto/arcfour/ChangeLog @@ -1,3 +1,8 @@ +2001-10-26 Ezra Peisach + + * string_to_key.c (krb5_arcfour_string_to_key): Cleanup variables + defined but not used. + 2001-10-25 Sam Hartman * arcfour.c: GSSAPI usage translations diff --git a/src/lib/crypto/arcfour/string_to_key.c b/src/lib/crypto/arcfour/string_to_key.c index 3871ea892b..23bebca80f 100644 --- a/src/lib/crypto/arcfour/string_to_key.c +++ b/src/lib/crypto/arcfour/string_to_key.c @@ -18,7 +18,7 @@ krb5_arcfour_string_to_key(enc, string, salt, key) krb5_const krb5_data *salt; krb5_keyblock *key; { - int len,slen,saltlen,counter; + int len,slen; unsigned char *copystr; krb5_MD4_CTX md4_context; @@ -53,9 +53,12 @@ krb5_arcfour_string_to_key(enc, string, salt, key) #if 0 /* test the string_to_key function */ printf("Hash="); - for(counter=0;counter<16;counter++) - printf("%02x", md4_context.digest[counter]); - printf("\n"); + { + int counter; + for(counter=0;counter<16;counter++) + printf("%02x", md4_context.digest[counter]); + printf("\n"); + } #endif /* 0 */ /* Zero out the data behind us */ -- cgit