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 149 socksreq[0] = 4; /* version (SOCKS4) */ in Curl_SOCKS4() 150 socksreq[1] = 1; /* connect */ in Curl_SOCKS4() 151 socksreq[2] = (unsigned char)((remote_port >> 8) & 0xff); /* PORT MSB */ in Curl_SOCKS4() 152 socksreq[3] = (unsigned char)(remote_port & 0xff); /* PORT LSB */ in Curl_SOCKS4() 183 socksreq[4] = ((unsigned char *)&saddr_in->sin_addr.s_addr)[0]; in Curl_SOCKS4() 184 socksreq[5] = ((unsigned char *)&saddr_in->sin_addr.s_addr)[1]; in Curl_SOCKS4() 185 socksreq[6] = ((unsigned char *)&saddr_in->sin_addr.s_addr)[2]; in Curl_SOCKS4() 186 socksreq[7] = ((unsigned char *)&saddr_in->sin_addr.s_addr)[3]; in Curl_SOCKS4() 208 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 196 socksreq[0] = 1; /* GSS-API subnegotiation version */ in Curl_SOCKS5_gssapi_negotiate() 197 socksreq[1] = 1; /* authentication message type */ in Curl_SOCKS5_gssapi_negotiate() 199 memcpy(socksreq+2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate() 201 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); in Curl_SOCKS5_gssapi_negotiate() 239 result=Curl_blockread_all(conn, sock, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate() 248 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate() 250 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate() 256 if(socksreq[1] != 1) { /* status / messgae type */ in Curl_SOCKS5_gssapi_negotiate() 258 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate() [all …]
|
D | socks_sspi.c | 86 unsigned char socksreq[4]; /* room for GSS-API exchange header only */ in Curl_SOCKS5_gssapi_negotiate() local 199 socksreq[0] = 1; /* GSS-API subnegotiation version */ in Curl_SOCKS5_gssapi_negotiate() 200 socksreq[1] = 1; /* authentication message type */ in Curl_SOCKS5_gssapi_negotiate() 202 memcpy(socksreq+2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate() 204 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); in Curl_SOCKS5_gssapi_negotiate() 258 result = Curl_blockread_all(conn, sock, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate() 268 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate() 270 (unsigned int)socksreq[0], (unsigned int)socksreq[1]); in Curl_SOCKS5_gssapi_negotiate() 277 if(socksreq[1] != 1) { /* status / messgae type */ in Curl_SOCKS5_gssapi_negotiate() 279 (unsigned int)socksreq[0], (unsigned int)socksreq[1]); in Curl_SOCKS5_gssapi_negotiate() [all …]
|