Lines Matching refs:socksreq
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()
286 memcpy(&us_length, socksreq+2, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
332 socksreq[0] = 1; /* GSS-API subnegotiation version */ in Curl_SOCKS5_gssapi_negotiate()
333 socksreq[1] = 2; /* encryption message type */ in Curl_SOCKS5_gssapi_negotiate()
380 memcpy(socksreq+2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
463 memcpy(socksreq+2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
466 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); in Curl_SOCKS5_gssapi_negotiate()
476 memcpy(socksreq, &gss_enc, 1); in Curl_SOCKS5_gssapi_negotiate()
477 code = Curl_write_plain(conn, sock, (char *)socksreq, 1, &written); in Curl_SOCKS5_gssapi_negotiate()
498 result = Curl_blockread_all(conn, sock, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate()
506 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate()
508 (unsigned int)socksreq[0], (unsigned int)socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
513 if(socksreq[1] != 2) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate()
515 (unsigned int)socksreq[0], (unsigned int)socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
520 memcpy(&us_length, socksreq+2, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
574 memcpy(socksreq, sspi_w_token[1].pvBuffer, sspi_w_token[1].cbBuffer); in Curl_SOCKS5_gssapi_negotiate()
586 memcpy(socksreq, sspi_w_token[0].pvBuffer, sspi_w_token[0].cbBuffer); in Curl_SOCKS5_gssapi_negotiate()
591 (socksreq[0]==0)?"out GSS-API data": in Curl_SOCKS5_gssapi_negotiate()
592 ((socksreq[0]==1)?" GSS-API integrity":" GSS-API confidentiality")); in Curl_SOCKS5_gssapi_negotiate()