Searched refs:socksreq (Results 1 – 3 of 3) sorted by relevance
/external/curl/lib/ |
D | socks.c | 116 unsigned char socksreq[SOCKS4REQLEN]; /* room for SOCKS4 request incl. user in Curl_SOCKS4() local 147 socksreq[0] = 4; /* version (SOCKS4) */ in Curl_SOCKS4() 148 socksreq[1] = 1; /* connect */ in Curl_SOCKS4() 149 socksreq[2] = (unsigned char)((remote_port >> 8) & 0xff); /* PORT MSB */ in Curl_SOCKS4() 150 socksreq[3] = (unsigned char)(remote_port & 0xff); /* PORT LSB */ in Curl_SOCKS4() 181 socksreq[4] = ((unsigned char *)&saddr_in->sin_addr.s_addr)[0]; in Curl_SOCKS4() 182 socksreq[5] = ((unsigned char *)&saddr_in->sin_addr.s_addr)[1]; in Curl_SOCKS4() 183 socksreq[6] = ((unsigned char *)&saddr_in->sin_addr.s_addr)[2]; in Curl_SOCKS4() 184 socksreq[7] = ((unsigned char *)&saddr_in->sin_addr.s_addr)[3]; in Curl_SOCKS4() 206 socksreq[8] = 0; /* ensure empty userid is NUL-terminated */ in Curl_SOCKS4() [all …]
|
D | socks_gssapi.c | 123 unsigned char socksreq[4]; /* room for GSS-API exchange header only */ in Curl_SOCKS5_gssapi_negotiate() local 197 socksreq[0] = 1; /* GSS-API subnegotiation version */ in Curl_SOCKS5_gssapi_negotiate() 198 socksreq[1] = 1; /* authentication message type */ in Curl_SOCKS5_gssapi_negotiate() 200 memcpy(socksreq + 2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate() 202 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); in Curl_SOCKS5_gssapi_negotiate() 240 result = Curl_blockread_all(conn, sock, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate() 249 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate() 251 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate() 257 if(socksreq[1] != 1) { /* status / messgae type */ in Curl_SOCKS5_gssapi_negotiate() 259 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate() [all …]
|
D | socks_sspi.c | 87 unsigned char socksreq[4]; /* room for GSS-API exchange header only */ in Curl_SOCKS5_gssapi_negotiate() local 200 socksreq[0] = 1; /* GSS-API subnegotiation version */ in Curl_SOCKS5_gssapi_negotiate() 201 socksreq[1] = 1; /* authentication message type */ in Curl_SOCKS5_gssapi_negotiate() 203 memcpy(socksreq + 2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate() 205 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); in Curl_SOCKS5_gssapi_negotiate() 259 result = Curl_blockread_all(conn, sock, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate() 269 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate() 271 (unsigned int)socksreq[0], (unsigned int)socksreq[1]); in Curl_SOCKS5_gssapi_negotiate() 278 if(socksreq[1] != 1) { /* status / messgae type */ in Curl_SOCKS5_gssapi_negotiate() 280 (unsigned int)socksreq[0], (unsigned int)socksreq[1]); in Curl_SOCKS5_gssapi_negotiate() [all …]
|