mirror of
https://github.com/mirror/wget.git
synced 2025-02-04 00:30:15 +08:00
[svn] Remove char/unsigned char warnings emitted by Sun cc.
This commit is contained in:
parent
fb98d1e4b0
commit
b65661a879
@ -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>
|
2001-11-29 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
* connect.h: Declare select_fd.
|
* connect.h: Declare select_fd.
|
||||||
|
@ -2160,7 +2160,7 @@ calculate_skey_response (int sequence, const char *seed, const char *pass)
|
|||||||
strcat (feed, pass);
|
strcat (feed, pass);
|
||||||
|
|
||||||
gen_md5_init (ctx);
|
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);
|
gen_md5_finish (ctx, (unsigned char *)results);
|
||||||
|
|
||||||
results[0] ^= results[2];
|
results[0] ^= results[2];
|
||||||
@ -2170,7 +2170,7 @@ calculate_skey_response (int sequence, const char *seed, const char *pass)
|
|||||||
while (0 < sequence--)
|
while (0 < sequence--)
|
||||||
{
|
{
|
||||||
gen_md5_init (ctx);
|
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);
|
gen_md5_finish (ctx, (unsigned char *)results);
|
||||||
results[0] ^= results[2];
|
results[0] ^= results[2];
|
||||||
results[1] ^= results[3];
|
results[1] ^= results[3];
|
||||||
|
@ -81,7 +81,7 @@ gen_md5_update (unsigned const char *buffer, int len, gen_md5_context *ctx)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SOLARIS_MD5
|
#ifdef HAVE_SOLARIS_MD5
|
||||||
MD5Update (ctx_imp, buffer, len);
|
MD5Update (ctx_imp, (unsigned char *)buffer, len);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_OPENSSL_MD5
|
#ifdef HAVE_OPENSSL_MD5
|
||||||
|
@ -217,7 +217,7 @@ lookup_host (const char *host, int silent)
|
|||||||
addr = (unsigned long)inet_addr (host);
|
addr = (unsigned long)inet_addr (host);
|
||||||
if ((int)addr != -1)
|
if ((int)addr != -1)
|
||||||
{
|
{
|
||||||
unsigned char tmpstore[IP4_ADDRESS_LENGTH];
|
char tmpstore[IP4_ADDRESS_LENGTH];
|
||||||
char *lst[] = { tmpstore, NULL };
|
char *lst[] = { tmpstore, NULL };
|
||||||
|
|
||||||
/* ADDR is defined to be in network byte order, which is what
|
/* ADDR is defined to be in network byte order, which is what
|
||||||
|
22
src/http.c
22
src/http.c
@ -2243,28 +2243,28 @@ digest_authentication_encode (const char *au, const char *user,
|
|||||||
|
|
||||||
/* A1BUF = H(user ":" realm ":" password) */
|
/* A1BUF = H(user ":" realm ":" password) */
|
||||||
gen_md5_init (ctx);
|
gen_md5_init (ctx);
|
||||||
gen_md5_update (user, strlen (user), ctx);
|
gen_md5_update ((unsigned char *)user, strlen (user), ctx);
|
||||||
gen_md5_update (":", 1, ctx);
|
gen_md5_update ((unsigned char *)":", 1, ctx);
|
||||||
gen_md5_update (realm, strlen (realm), ctx);
|
gen_md5_update ((unsigned char *)realm, strlen (realm), ctx);
|
||||||
gen_md5_update (":", 1, ctx);
|
gen_md5_update ((unsigned char *)":", 1, ctx);
|
||||||
gen_md5_update (passwd, strlen (passwd), ctx);
|
gen_md5_update ((unsigned char *)passwd, strlen (passwd), ctx);
|
||||||
gen_md5_finish (ctx, hash);
|
gen_md5_finish (ctx, hash);
|
||||||
dump_hash (a1buf, hash);
|
dump_hash (a1buf, hash);
|
||||||
|
|
||||||
/* A2BUF = H(method ":" path) */
|
/* A2BUF = H(method ":" path) */
|
||||||
gen_md5_init (ctx);
|
gen_md5_init (ctx);
|
||||||
gen_md5_update (method, strlen (method), ctx);
|
gen_md5_update ((unsigned char *)method, strlen (method), ctx);
|
||||||
gen_md5_update (":", 1, ctx);
|
gen_md5_update ((unsigned char *)":", 1, ctx);
|
||||||
gen_md5_update (path, strlen (path), ctx);
|
gen_md5_update ((unsigned char *)path, strlen (path), ctx);
|
||||||
gen_md5_finish (ctx, hash);
|
gen_md5_finish (ctx, hash);
|
||||||
dump_hash (a2buf, hash);
|
dump_hash (a2buf, hash);
|
||||||
|
|
||||||
/* RESPONSE_DIGEST = H(A1BUF ":" nonce ":" A2BUF) */
|
/* RESPONSE_DIGEST = H(A1BUF ":" nonce ":" A2BUF) */
|
||||||
gen_md5_init (ctx);
|
gen_md5_init (ctx);
|
||||||
gen_md5_update (a1buf, MD5_HASHLEN * 2, ctx);
|
gen_md5_update (a1buf, MD5_HASHLEN * 2, ctx);
|
||||||
gen_md5_update (":", 1, ctx);
|
gen_md5_update ((unsigned char *)":", 1, ctx);
|
||||||
gen_md5_update (nonce, strlen (nonce), ctx);
|
gen_md5_update ((unsigned char *)nonce, strlen (nonce), ctx);
|
||||||
gen_md5_update (":", 1, ctx);
|
gen_md5_update ((unsigned char *)":", 1, ctx);
|
||||||
gen_md5_update (a2buf, MD5_HASHLEN * 2, ctx);
|
gen_md5_update (a2buf, MD5_HASHLEN * 2, ctx);
|
||||||
gen_md5_finish (ctx, hash);
|
gen_md5_finish (ctx, hash);
|
||||||
dump_hash (response_digest, hash);
|
dump_hash (response_digest, hash);
|
||||||
|
@ -1788,7 +1788,7 @@ debug_test_md5 (char *buf)
|
|||||||
ALLOCA_MD5_CONTEXT (ctx);
|
ALLOCA_MD5_CONTEXT (ctx);
|
||||||
|
|
||||||
gen_md5_init (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);
|
gen_md5_finish (ctx, raw);
|
||||||
|
|
||||||
p1 = raw;
|
p1 = raw;
|
||||||
|
Loading…
Reference in New Issue
Block a user