Lines Matching refs:socksreq
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()
265 memcpy(&us_length, socksreq + 2, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
333 socksreq[0] = 1; /* GSS-API subnegotiation version */ in Curl_SOCKS5_gssapi_negotiate()
334 socksreq[1] = 2; /* encryption message type */ in Curl_SOCKS5_gssapi_negotiate()
380 memcpy(socksreq + 2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
405 memcpy(socksreq + 2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
408 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); in Curl_SOCKS5_gssapi_negotiate()
417 memcpy(socksreq, &gss_enc, 1); in Curl_SOCKS5_gssapi_negotiate()
418 code = Curl_write_plain(conn, sock, socksreq, 1, &written); in Curl_SOCKS5_gssapi_negotiate()
437 result = Curl_blockread_all(conn, sock, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate()
445 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate()
447 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
452 if(socksreq[1] != 2) { /* status / messgae type */ in Curl_SOCKS5_gssapi_negotiate()
454 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
459 memcpy(&us_length, socksreq + 2, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
500 memcpy(socksreq, gss_w_token.value, gss_w_token.length); in Curl_SOCKS5_gssapi_negotiate()
512 memcpy(socksreq, gss_recv_token.value, gss_recv_token.length); in Curl_SOCKS5_gssapi_negotiate()
517 (socksreq[0] == 0)?"out GSS-API data": in Curl_SOCKS5_gssapi_negotiate()
518 ((socksreq[0] == 1)?" GSS-API integrity":" GSS-API confidentiality")); in Curl_SOCKS5_gssapi_negotiate()
520 conn->socks5_gssapi_enctype = socksreq[0]; in Curl_SOCKS5_gssapi_negotiate()
521 if(socksreq[0] == 0) in Curl_SOCKS5_gssapi_negotiate()