]> sjero.net Git - wget/commitdiff
[svn] Remove char/unsigned char warnings emitted by Sun cc.
authorhniksic <devnull@localhost>
Thu, 29 Nov 2001 18:48:43 +0000 (10:48 -0800)
committerhniksic <devnull@localhost>
Thu, 29 Nov 2001 18:48:43 +0000 (10:48 -0800)
src/ChangeLog
src/ftp-opie.c
src/gen-md5.c
src/host.c
src/http.c
src/utils.c

index 630ef7e2815ee536f390ac58fc485d07f4ddc431..3c6bff9af9bc3842169d0989006042419d0576c6 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
+
+       * gen-md5.c: Use unsigned char * as the buffer argument to
+       gen_md5_update.
+
 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
 
        * connect.h: Declare select_fd.
index 39c90986eef33699c110ebbb3745152f0ab6a6e6..3ac33de9e573f5c53f245eb8d928b2cac03bc50d 100644 (file)
@@ -2160,7 +2160,7 @@ calculate_skey_response (int sequence, const char *seed, const char *pass)
   strcat (feed, pass);
 
   gen_md5_init (ctx);
-  gen_md5_update (feed, strlen (feed), ctx);
+  gen_md5_update ((unsigned char *)feed, strlen (feed), ctx);
   gen_md5_finish (ctx, (unsigned char *)results);
 
   results[0] ^= results[2];
@@ -2170,7 +2170,7 @@ calculate_skey_response (int sequence, const char *seed, const char *pass)
   while (0 < sequence--)
     {
       gen_md5_init (ctx);
-      gen_md5_update (key, 8, ctx);
+      gen_md5_update ((unsigned char *)key, 8, ctx);
       gen_md5_finish (ctx, (unsigned char *)results);
       results[0] ^= results[2];
       results[1] ^= results[3];
index 02bd479f5f2584272e8bf1ff362d91cd43b2c314..101d45851cd3b42d7c2061a3edd06a0641af2600 100644 (file)
@@ -81,7 +81,7 @@ gen_md5_update (unsigned const char *buffer, int len, gen_md5_context *ctx)
 #endif
 
 #ifdef HAVE_SOLARIS_MD5
-  MD5Update (ctx_imp, buffer, len);
+  MD5Update (ctx_imp, (unsigned char *)buffer, len);
 #endif
 
 #ifdef HAVE_OPENSSL_MD5
index bbb1a10164f05ebfba129a13f54cd63825844dbd..e1c170111057983db9428de93897387cc2aee38e 100644 (file)
@@ -217,7 +217,7 @@ lookup_host (const char *host, int silent)
   addr = (unsigned long)inet_addr (host);
   if ((int)addr != -1)
     {
-      unsigned char tmpstore[IP4_ADDRESS_LENGTH];
+      char tmpstore[IP4_ADDRESS_LENGTH];
       char *lst[] = { tmpstore, NULL };
 
       /* ADDR is defined to be in network byte order, which is what
index 2eae2f19d2ae1a70591006bf7b3bb9e765a8d260..9043527ac947e0da8995cefbc5f6ea4573a61493 100644 (file)
@@ -2243,28 +2243,28 @@ digest_authentication_encode (const char *au, const char *user,
 
     /* A1BUF = H(user ":" realm ":" password) */
     gen_md5_init (ctx);
-    gen_md5_update (user, strlen (user), ctx);
-    gen_md5_update (":", 1, ctx);
-    gen_md5_update (realm, strlen (realm), ctx);
-    gen_md5_update (":", 1, ctx);
-    gen_md5_update (passwd, strlen (passwd), ctx);
+    gen_md5_update ((unsigned char *)user, strlen (user), ctx);
+    gen_md5_update ((unsigned char *)":", 1, ctx);
+    gen_md5_update ((unsigned char *)realm, strlen (realm), ctx);
+    gen_md5_update ((unsigned char *)":", 1, ctx);
+    gen_md5_update ((unsigned char *)passwd, strlen (passwd), ctx);
     gen_md5_finish (ctx, hash);
     dump_hash (a1buf, hash);
 
     /* A2BUF = H(method ":" path) */
     gen_md5_init (ctx);
-    gen_md5_update (method, strlen (method), ctx);
-    gen_md5_update (":", 1, ctx);
-    gen_md5_update (path, strlen (path), ctx);
+    gen_md5_update ((unsigned char *)method, strlen (method), ctx);
+    gen_md5_update ((unsigned char *)":", 1, ctx);
+    gen_md5_update ((unsigned char *)path, strlen (path), ctx);
     gen_md5_finish (ctx, hash);
     dump_hash (a2buf, hash);
 
     /* RESPONSE_DIGEST = H(A1BUF ":" nonce ":" A2BUF) */
     gen_md5_init (ctx);
     gen_md5_update (a1buf, MD5_HASHLEN * 2, ctx);
-    gen_md5_update (":", 1, ctx);
-    gen_md5_update (nonce, strlen (nonce), ctx);
-    gen_md5_update (":", 1, ctx);
+    gen_md5_update ((unsigned char *)":", 1, ctx);
+    gen_md5_update ((unsigned char *)nonce, strlen (nonce), ctx);
+    gen_md5_update ((unsigned char *)":", 1, ctx);
     gen_md5_update (a2buf, MD5_HASHLEN * 2, ctx);
     gen_md5_finish (ctx, hash);
     dump_hash (response_digest, hash);
index e93846cb8e3684d3d3ee2e98a555ac0435d6b957..18015b07f2cd676c518215bdba074bdb895e9417 100644 (file)
@@ -1788,7 +1788,7 @@ debug_test_md5 (char *buf)
   ALLOCA_MD5_CONTEXT (ctx);
 
   gen_md5_init (ctx);
-  gen_md5_update (buf, strlen (buf), ctx);
+  gen_md5_update ((unsigned char *)buf, strlen (buf), ctx);
   gen_md5_finish (ctx, raw);
 
   p1 = raw;