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 | 123 unsigned char socksreq[4]; /* room for GSS-API exchange header only */ in Curl_SOCKS5_gssapi_negotiate() local 194 socksreq[0] = 1; /* GSS-API subnegotiation version */ in Curl_SOCKS5_gssapi_negotiate() 195 socksreq[1] = 1; /* authentication message type */ in Curl_SOCKS5_gssapi_negotiate() 197 memcpy(socksreq+2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate() 199 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); in Curl_SOCKS5_gssapi_negotiate() 237 result=Curl_blockread_all(conn, sock, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate() 246 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate() 248 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate() 254 if(socksreq[1] != 1) { /* status / messgae type */ in Curl_SOCKS5_gssapi_negotiate() 256 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 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() 255 result = Curl_blockread_all(conn, sock, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate() 265 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate() 267 (unsigned int)socksreq[0], (unsigned int)socksreq[1]); in Curl_SOCKS5_gssapi_negotiate() 274 if(socksreq[1] != 1) { /* status / messgae type */ in Curl_SOCKS5_gssapi_negotiate() 276 (unsigned int)socksreq[0], (unsigned int)socksreq[1]); in Curl_SOCKS5_gssapi_negotiate() [all …]
|