Loading lib/curl_addrinfo.c +2 −2 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading Loading @@ -370,7 +370,7 @@ Curl_ip2addr(int af, const void *inaddr, const char *hostname, int port) struct namebuff *buf; char *addrentry; char *hoststr; int addrsize; size_t addrsize; DEBUGASSERT(inaddr && hostname); Loading lib/http_negotiate.c +6 −6 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading Loading @@ -140,7 +140,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy, gss_buffer_desc input_token = GSS_C_EMPTY_BUFFER; gss_buffer_desc output_token = GSS_C_EMPTY_BUFFER; int ret; size_t len; size_t len, rawlen; bool gss; const char* protocol; Loading Loading @@ -185,9 +185,9 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy, len = strlen(header); if(len > 0) { int rawlen = Curl_base64_decode(header, rawlen = Curl_base64_decode(header, (unsigned char **)&input_token.value); if(rawlen < 0) if(rawlen == 0) return -1; input_token.length = rawlen; Loading Loading @@ -277,7 +277,7 @@ CURLcode Curl_output_negotiate(struct connectdata *conn, bool proxy) struct negotiatedata *neg_ctx = proxy?&conn->data->state.proxyneg: &conn->data->state.negotiate; char *encoded = NULL; int len; size_t len; #ifdef HAVE_SPNEGO /* Handle SPNEGO */ if(checkprefix("Negotiate", neg_ctx->protocol)) { Loading lib/ssluse.c +3 −3 Original line number Diff line number Diff line Loading @@ -1044,7 +1044,7 @@ static CURLcode verifyhost(struct connectdata *conn, { bool matched = FALSE; /* no alternative match yet */ int target = GEN_DNS; /* target type, GEN_DNS or GEN_IPADD */ int addrlen = 0; size_t addrlen = 0; struct SessionHandle *data = conn->data; STACK_OF(GENERAL_NAME) *altnames; #ifdef ENABLE_IPV6 Loading Loading @@ -1087,7 +1087,7 @@ static CURLcode verifyhost(struct connectdata *conn, if(check->type == target) { /* get data and length */ const char *altptr = (char *)ASN1_STRING_data(check->d.ia5); int altlen; size_t altlen; switch(target) { case GEN_DNS: /* name/pattern comparison */ Loading @@ -1108,7 +1108,7 @@ static CURLcode verifyhost(struct connectdata *conn, case GEN_IPADD: /* IP address comparison */ /* compare alternative IP address if the data chunk is the same size our server IP address is */ altlen = ASN1_STRING_length(check->d.ia5); altlen = (size_t) ASN1_STRING_length(check->d.ia5); if((altlen == addrlen) && !memcmp(altptr, &addr, altlen)) matched = TRUE; break; Loading tests/libtest/lib556.c +1 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,7 @@ int test(char *URL) if(!res) { /* we assume that sending always work */ int total=0; size_t total=0; do { /* busy-read like crazy */ Loading Loading
lib/curl_addrinfo.c +2 −2 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading Loading @@ -370,7 +370,7 @@ Curl_ip2addr(int af, const void *inaddr, const char *hostname, int port) struct namebuff *buf; char *addrentry; char *hoststr; int addrsize; size_t addrsize; DEBUGASSERT(inaddr && hostname); Loading
lib/http_negotiate.c +6 −6 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading Loading @@ -140,7 +140,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy, gss_buffer_desc input_token = GSS_C_EMPTY_BUFFER; gss_buffer_desc output_token = GSS_C_EMPTY_BUFFER; int ret; size_t len; size_t len, rawlen; bool gss; const char* protocol; Loading Loading @@ -185,9 +185,9 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy, len = strlen(header); if(len > 0) { int rawlen = Curl_base64_decode(header, rawlen = Curl_base64_decode(header, (unsigned char **)&input_token.value); if(rawlen < 0) if(rawlen == 0) return -1; input_token.length = rawlen; Loading Loading @@ -277,7 +277,7 @@ CURLcode Curl_output_negotiate(struct connectdata *conn, bool proxy) struct negotiatedata *neg_ctx = proxy?&conn->data->state.proxyneg: &conn->data->state.negotiate; char *encoded = NULL; int len; size_t len; #ifdef HAVE_SPNEGO /* Handle SPNEGO */ if(checkprefix("Negotiate", neg_ctx->protocol)) { Loading
lib/ssluse.c +3 −3 Original line number Diff line number Diff line Loading @@ -1044,7 +1044,7 @@ static CURLcode verifyhost(struct connectdata *conn, { bool matched = FALSE; /* no alternative match yet */ int target = GEN_DNS; /* target type, GEN_DNS or GEN_IPADD */ int addrlen = 0; size_t addrlen = 0; struct SessionHandle *data = conn->data; STACK_OF(GENERAL_NAME) *altnames; #ifdef ENABLE_IPV6 Loading Loading @@ -1087,7 +1087,7 @@ static CURLcode verifyhost(struct connectdata *conn, if(check->type == target) { /* get data and length */ const char *altptr = (char *)ASN1_STRING_data(check->d.ia5); int altlen; size_t altlen; switch(target) { case GEN_DNS: /* name/pattern comparison */ Loading @@ -1108,7 +1108,7 @@ static CURLcode verifyhost(struct connectdata *conn, case GEN_IPADD: /* IP address comparison */ /* compare alternative IP address if the data chunk is the same size our server IP address is */ altlen = ASN1_STRING_length(check->d.ia5); altlen = (size_t) ASN1_STRING_length(check->d.ia5); if((altlen == addrlen) && !memcmp(altptr, &addr, altlen)) matched = TRUE; break; Loading
tests/libtest/lib556.c +1 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,7 @@ int test(char *URL) if(!res) { /* we assume that sending always work */ int total=0; size_t total=0; do { /* busy-read like crazy */ Loading