* string_to_key.c (krb5_arcfour_string_to_key): Cleanup variables
authorEzra Peisach <epeisach@mit.edu>
Fri, 26 Oct 2001 15:49:47 +0000 (15:49 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 26 Oct 2001 15:49:47 +0000 (15:49 +0000)
        defined but not used.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13865 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/arcfour/ChangeLog
src/lib/crypto/arcfour/string_to_key.c

index 9f9cbc76a2e7b2764bba12427ac6b2637a268a48..f3b4a5040f00db0bfc519457372dafac4a50652b 100644 (file)
@@ -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
index 3871ea892bd443184e7d26b8a2914793c1960e73..23bebca80f349f507f26a9086df5f3c4ce928880 100644 (file)
@@ -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 */