Searched refs:socksreq (Results 1 – 3 of 3) sorted by relevance
/external/curl/lib/ |
D | socks.c | 117 unsigned char socksreq[SOCKS4REQLEN]; /* room for SOCKS4 request incl. user in Curl_SOCKS4() local 145 socksreq[0] = 4; /* version (SOCKS4) */ in Curl_SOCKS4() 146 socksreq[1] = 1; /* connect */ in Curl_SOCKS4() 147 socksreq[2] = (unsigned char)((remote_port >> 8) & 0xff); /* PORT MSB */ in Curl_SOCKS4() 148 socksreq[3] = (unsigned char)(remote_port & 0xff); /* PORT LSB */ in Curl_SOCKS4() 179 socksreq[4] = (unsigned char)ip[0]; in Curl_SOCKS4() 180 socksreq[5] = (unsigned char)ip[1]; in Curl_SOCKS4() 181 socksreq[6] = (unsigned char)ip[2]; in Curl_SOCKS4() 182 socksreq[7] = (unsigned char)ip[3]; in Curl_SOCKS4() 202 socksreq[8] = 0; /* ensure empty userid is NUL-terminated */ in Curl_SOCKS4() [all …]
|
D | socks_gssapi.c | 122 unsigned char socksreq[4]; /* room for GSS-API exchange header only */ in Curl_SOCKS5_gssapi_negotiate() local 192 socksreq[0] = 1; /* GSS-API subnegotiation version */ in Curl_SOCKS5_gssapi_negotiate() 193 socksreq[1] = 1; /* authentication message type */ in Curl_SOCKS5_gssapi_negotiate() 195 memcpy(socksreq+2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate() 197 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); in Curl_SOCKS5_gssapi_negotiate() 235 result=Curl_blockread_all(conn, sock, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate() 244 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate() 246 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate() 252 if(socksreq[1] != 1) { /* status / messgae type */ in Curl_SOCKS5_gssapi_negotiate() 254 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate() [all …]
|
D | socks_sspi.c | 85 unsigned char socksreq[4]; /* room for GSS-API exchange header only */ in Curl_SOCKS5_gssapi_negotiate() local 195 socksreq[0] = 1; /* GSS-API subnegotiation version */ in Curl_SOCKS5_gssapi_negotiate() 196 socksreq[1] = 1; /* authentication message type */ in Curl_SOCKS5_gssapi_negotiate() 198 memcpy(socksreq+2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate() 200 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); in Curl_SOCKS5_gssapi_negotiate() 254 result = Curl_blockread_all(conn, sock, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate() 264 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate() 266 (unsigned int)socksreq[0], (unsigned int)socksreq[1]); in Curl_SOCKS5_gssapi_negotiate() 273 if(socksreq[1] != 1) { /* status / messgae type */ in Curl_SOCKS5_gssapi_negotiate() 275 (unsigned int)socksreq[0], (unsigned int)socksreq[1]); in Curl_SOCKS5_gssapi_negotiate() [all …]
|