• Home
  • Raw
  • Download

Lines Matching refs:socksreq

122   unsigned char socksreq[4]; /* room for GSS-API exchange header only */  in Curl_SOCKS5_gssapi_negotiate()  local
192 socksreq[0] = 1; /* GSS-API subnegotiation version */ in Curl_SOCKS5_gssapi_negotiate()
193 socksreq[1] = 1; /* authentication message type */ in Curl_SOCKS5_gssapi_negotiate()
195 memcpy(socksreq+2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
197 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); in Curl_SOCKS5_gssapi_negotiate()
235 result=Curl_blockread_all(conn, sock, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate()
244 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate()
246 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
252 if(socksreq[1] != 1) { /* status / messgae type */ in Curl_SOCKS5_gssapi_negotiate()
254 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
260 memcpy(&us_length, socksreq+2, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
328 socksreq[0] = 1; /* GSS-API subnegotiation version */ in Curl_SOCKS5_gssapi_negotiate()
329 socksreq[1] = 2; /* encryption message type */ in Curl_SOCKS5_gssapi_negotiate()
375 memcpy(socksreq+2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
400 memcpy(socksreq+2, &us_length, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
403 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); in Curl_SOCKS5_gssapi_negotiate()
412 memcpy(socksreq, &gss_enc, 1); in Curl_SOCKS5_gssapi_negotiate()
413 code = Curl_write_plain(conn, sock, socksreq, 1, &written); in Curl_SOCKS5_gssapi_negotiate()
432 result=Curl_blockread_all(conn, sock, (char *)socksreq, 4, &actualread); in Curl_SOCKS5_gssapi_negotiate()
440 if(socksreq[1] == 255) { /* status / message type */ in Curl_SOCKS5_gssapi_negotiate()
442 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
447 if(socksreq[1] != 2) { /* status / messgae type */ in Curl_SOCKS5_gssapi_negotiate()
449 socksreq[0], socksreq[1]); in Curl_SOCKS5_gssapi_negotiate()
454 memcpy(&us_length, socksreq+2, sizeof(short)); in Curl_SOCKS5_gssapi_negotiate()
495 memcpy(socksreq, gss_w_token.value, gss_w_token.length); in Curl_SOCKS5_gssapi_negotiate()
507 memcpy(socksreq, gss_recv_token.value, gss_recv_token.length); in Curl_SOCKS5_gssapi_negotiate()
512 (socksreq[0]==0)?"out GSS-API data": in Curl_SOCKS5_gssapi_negotiate()
513 ((socksreq[0]==1)?" GSS-API integrity":" GSS-API confidentiality")); in Curl_SOCKS5_gssapi_negotiate()
515 conn->socks5_gssapi_enctype = socksreq[0]; in Curl_SOCKS5_gssapi_negotiate()
516 if(socksreq[0] == 0) in Curl_SOCKS5_gssapi_negotiate()