diff --git a/src/protocol/http/http.c b/src/protocol/http/http.c index 75df08fe..87d468d8 100644 --- a/src/protocol/http/http.c +++ b/src/protocol/http/http.c @@ -813,7 +813,7 @@ http_send_header(struct socket *socket) if (http_negotiate_output(uri, &header) != 0) #endif entry = find_auth(uri); - + if (entry) { if (entry->digest) { unsigned char *response; @@ -1334,7 +1334,7 @@ get_header(struct read_buffer *rb) /* returns 1 if we need retry the connection (for negotiate-auth only) */ static int -check_http_authentication(struct connection *conn, struct uri *uri, +check_http_authentication(struct connection *conn, struct uri *uri, unsigned char *header, unsigned char *header_field) { unsigned char *str, *d; @@ -1608,12 +1608,12 @@ again: } if (h == 401) { - if (check_http_authentication(conn, uri, + if (check_http_authentication(conn, uri, conn->cached->head, "WWW-Authenticate")) { retry_connection(conn, S_RESTART); return; } - + } if (h == 407) { unsigned char *str; diff --git a/src/util/base64.c b/src/util/base64.c index 2c2e9ad8..fc777174 100644 --- a/src/util/base64.c +++ b/src/util/base64.c @@ -19,7 +19,7 @@ base64_encode(register unsigned char *in) { assert(in && *in); if_assert_failed return NULL; - + return base64_encode_bin(in, strlen(in), NULL); } @@ -62,12 +62,12 @@ base64_encode_bin(register unsigned char *in, int inlen, int *outlen) return outstr; } -/* Base64 decoding is used only with the CONFIG_FORMHIST or CONFIG_GSSAPI +/* Base64 decoding is used only with the CONFIG_FORMHIST or CONFIG_GSSAPI feature, so i'll #ifdef it */ #if defined(CONFIG_FORMHIST) || defined(CONFIG_GSSAPI) unsigned char * -base64_decode(register unsigned char *in) +base64_decode(register unsigned char *in) { assert(in && *in); if_assert_failed return NULL;