Lines Matching refs:socksreq

90   unsigned char socksreq[4]; /* room for GSS-API exchange header only */  in Curl_SOCKS5_gssapi_negotiate()  local
205 socksreq[0] = 1; /* GSS-API subnegotiation version */ in Curl_SOCKS5_gssapi_negotiate()
206 socksreq[1] = 1; /* authentication message type */ in Curl_SOCKS5_gssapi_negotiate()
208 memcpy(socksreq + 2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
210 written = Curl_conn_cf_send(cf->next, data, (char *)socksreq, 4, FALSE, in Curl_SOCKS5_gssapi_negotiate()
266 result = Curl_blockread_all(cf, data, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate()
276 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate()
278 (unsigned int)socksreq[0], (unsigned int)socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
285 if(socksreq[1] != 1) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate()
287 (unsigned int)socksreq[0], (unsigned int)socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
294 memcpy(&us_length, socksreq + 2, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
346 socksreq[0] = 1; /* GSS-API subnegotiation version */ in Curl_SOCKS5_gssapi_negotiate()
347 socksreq[1] = 2; /* encryption message type */ in Curl_SOCKS5_gssapi_negotiate()
395 memcpy(socksreq + 2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
478 memcpy(socksreq + 2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
481 written = Curl_conn_cf_send(cf->next, data, (char *)socksreq, 4, FALSE, in Curl_SOCKS5_gssapi_negotiate()
492 memcpy(socksreq, &gss_enc, 1); in Curl_SOCKS5_gssapi_negotiate()
493 written = Curl_conn_cf_send(cf->next, data, (char *)socksreq, 1, FALSE, in Curl_SOCKS5_gssapi_negotiate()
516 result = Curl_blockread_all(cf, data, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate()
524 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate()
526 (unsigned int)socksreq[0], (unsigned int)socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
531 if(socksreq[1] != 2) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate()
533 (unsigned int)socksreq[0], (unsigned int)socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
538 memcpy(&us_length, socksreq + 2, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
592 memcpy(socksreq, sspi_w_token[1].pvBuffer, sspi_w_token[1].cbBuffer); in Curl_SOCKS5_gssapi_negotiate()
604 memcpy(socksreq, sspi_w_token[0].pvBuffer, sspi_w_token[0].cbBuffer); in Curl_SOCKS5_gssapi_negotiate()
610 (socksreq[0] == 0) ? "out GSS-API data": in Curl_SOCKS5_gssapi_negotiate()
611 ((socksreq[0] == 1) ? " GSS-API integrity" : in Curl_SOCKS5_gssapi_negotiate()