diff options
author | Ezra Peisach <epeisach@mit.edu> | 2001-10-26 15:49:47 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2001-10-26 15:49:47 +0000 |
commit | 1eb4cefb9f7770646c4b57ad16a7ac516da360c1 (patch) | |
tree | ee76bc189641bc199909f50f2f9d36fb9890dc10 /src | |
parent | 45d7eb871e9f21bda9f987819d3456cd877e3165 (diff) | |
download | krb5-1eb4cefb9f7770646c4b57ad16a7ac516da360c1.tar.gz krb5-1eb4cefb9f7770646c4b57ad16a7ac516da360c1.tar.xz krb5-1eb4cefb9f7770646c4b57ad16a7ac516da360c1.zip |
* 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
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/crypto/arcfour/ChangeLog | 5 | ||||
-rw-r--r-- | src/lib/crypto/arcfour/string_to_key.c | 11 |
2 files changed, 12 insertions, 4 deletions
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 <epeisach@mit.edu> + + * string_to_key.c (krb5_arcfour_string_to_key): Cleanup variables + defined but not used. + 2001-10-25 Sam Hartman <hartmans@mit.edu> * 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 */ |