Lines Matching refs:socksreq
127 unsigned char socksreq[4]; /* room for GSS-API exchange header only */ in Curl_SOCKS5_gssapi_negotiate() local
202 socksreq[0] = 1; /* GSS-API subnegotiation version */ in Curl_SOCKS5_gssapi_negotiate()
203 socksreq[1] = 1; /* authentication message type */ in Curl_SOCKS5_gssapi_negotiate()
205 memcpy(socksreq + 2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
207 nwritten = Curl_conn_cf_send(cf->next, data, (char *)socksreq, 4, in Curl_SOCKS5_gssapi_negotiate()
247 result = Curl_blockread_all(cf, data, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate()
256 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate()
258 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
264 if(socksreq[1] != 1) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate()
266 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
272 memcpy(&us_length, socksreq + 2, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
340 socksreq[0] = 1; /* GSS-API subnegotiation version */ in Curl_SOCKS5_gssapi_negotiate()
341 socksreq[1] = 2; /* encryption message type */ in Curl_SOCKS5_gssapi_negotiate()
388 memcpy(socksreq + 2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
412 memcpy(socksreq + 2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
415 nwritten = Curl_conn_cf_send(cf->next, data, (char *)socksreq, 4, FALSE, in Curl_SOCKS5_gssapi_negotiate()
425 memcpy(socksreq, &gss_enc, 1); in Curl_SOCKS5_gssapi_negotiate()
426 nwritten = Curl_conn_cf_send(cf->next, data, (char *)socksreq, 1, FALSE, in Curl_SOCKS5_gssapi_negotiate()
447 result = Curl_blockread_all(cf, data, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate()
455 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate()
457 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
462 if(socksreq[1] != 2) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate()
464 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
469 memcpy(&us_length, socksreq + 2, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
510 memcpy(socksreq, gss_w_token.value, gss_w_token.length); in Curl_SOCKS5_gssapi_negotiate()
522 memcpy(socksreq, gss_recv_token.value, gss_recv_token.length); in Curl_SOCKS5_gssapi_negotiate()
529 (socksreq[0] == 0) ? "out GSS-API data": in Curl_SOCKS5_gssapi_negotiate()
530 ((socksreq[0] == 1) ? " GSS-API integrity" : in Curl_SOCKS5_gssapi_negotiate()
533 conn->socks5_gssapi_enctype = socksreq[0]; in Curl_SOCKS5_gssapi_negotiate()
534 if(socksreq[0] == 0) in Curl_SOCKS5_gssapi_negotiate()