/external/curl/lib/ |
D | openldap.c | 235 rc = ldap_init_fd(conn->sock[FIRSTSOCKET], li->proto, hosturl, &li->ld); in ldap_connect() 247 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &li->ssldone); in ldap_connect() 269 CURLcode result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, in ldap_connecting() 281 li->recv = conn->recv[FIRSTSOCKET]; in ldap_connecting() 282 li->send = conn->send[FIRSTSOCKET]; in ldap_connecting() 355 conn->recv[FIRSTSOCKET] = ldap_recv; in ldap_connecting() 417 Curl_setup_transfer(data, FIRSTSOCKET, -1, FALSE, -1); in ldap_do() 717 return Curl_ssl_data_pending(conn, FIRSTSOCKET); in ldapsb_tls_ctrl() 730 ret = (li->recv)(conn, FIRSTSOCKET, buf, len, &err); in ldapsb_tls_read() 745 ret = (li->send)(conn, FIRSTSOCKET, buf, len, &err); in ldapsb_tls_write()
|
D | dict.c | 137 curl_socket_t sockfd = conn->sock[FIRSTSOCKET]; in dict_do() 202 Curl_setup_transfer(data, FIRSTSOCKET, -1, FALSE, -1); /* no upload */ in dict_do() 248 Curl_setup_transfer(data, FIRSTSOCKET, -1, FALSE, -1); in dict_do() 270 Curl_setup_transfer(data, FIRSTSOCKET, -1, FALSE, -1); in dict_do()
|
D | curl_rtmp.c | 211 r->m_sb.sb_socket = (int)conn->sock[FIRSTSOCKET]; in rtmp_connect() 235 conn->recv[FIRSTSOCKET] = rtmp_recv; in rtmp_connect() 236 conn->send[FIRSTSOCKET] = rtmp_send; in rtmp_connect() 250 Curl_setup_transfer(data, -1, -1, FALSE, FIRSTSOCKET); in rtmp_do() 253 Curl_setup_transfer(data, FIRSTSOCKET, -1, FALSE, -1); in rtmp_do()
|
D | pingpong.c | 84 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in Curl_pp_statemach() 104 if(Curl_ssl_data_pending(conn, FIRSTSOCKET)) in Curl_pp_statemach() 109 else if(!pp->sendleft && Curl_ssl_data_pending(conn, FIRSTSOCKET)) in Curl_pp_statemach() 211 result = Curl_write(conn, conn->sock[FIRSTSOCKET], s, write_len, in Curl_pp_vsendf() 474 socks[0] = conn->sock[FIRSTSOCKET]; in Curl_pp_getsock() 490 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in Curl_pp_flushsend()
|
D | gopher.c | 80 curl_socket_t sockfd = conn->sock[FIRSTSOCKET]; in gopher_do() 171 Curl_setup_transfer(data, FIRSTSOCKET, -1, FALSE, -1); in gopher_do()
|
D | rtsp.c | 95 socks[0] = conn->sock[FIRSTSOCKET]; in rtsp_getsock_do() 153 sval = SOCKET_READABLE(check->sock[FIRSTSOCKET], 0); in rtsp_connisdead() 326 Curl_setup_transfer(data, FIRSTSOCKET, -1, TRUE, -1); in rtsp_do() 588 &data->info.request_size, 0, FIRSTSOCKET); in rtsp_do() 594 Curl_setup_transfer(data, FIRSTSOCKET, -1, TRUE, putsize?FIRSTSOCKET:-1); in rtsp_do()
|
D | ssh-libssh.c | 559 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in myssh_statemach_act() 1203 Curl_setup_transfer(data, -1, -1, FALSE, FIRSTSOCKET); in myssh_statemach_act() 1611 Curl_setup_transfer(data, FIRSTSOCKET, data->req.size, FALSE, -1); in myssh_statemach_act() 1733 Curl_setup_transfer(data, -1, data->req.size, FALSE, FIRSTSOCKET); in myssh_statemach_act() 1776 Curl_setup_transfer(data, FIRSTSOCKET, bytecount, FALSE, -1); in myssh_statemach_act() 1923 sock[0] = conn->sock[FIRSTSOCKET]; in myssh_perform_getsock() 1926 bitmap |= GETSOCK_READSOCK(FIRSTSOCKET); in myssh_perform_getsock() 1929 bitmap |= GETSOCK_WRITESOCK(FIRSTSOCKET); in myssh_perform_getsock() 2015 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in myssh_block_statemach() 2053 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in myssh_connect() [all …]
|
D | telnet.c | 356 bytes_written = swrite(conn->sock[FIRSTSOCKET], buf, 3); in send_negotiation() 941 bytes_written = swrite(conn->sock[FIRSTSOCKET], temp, len); in suboption() 953 bytes_written = swrite(conn->sock[FIRSTSOCKET], temp, len); in suboption() 981 bytes_written = swrite(conn->sock[FIRSTSOCKET], temp, len); in suboption() 1036 bytes_written = swrite(conn->sock[FIRSTSOCKET], tn->subbuffer, 3); in sendsuboption() 1045 bytes_written = swrite(conn->sock[FIRSTSOCKET], tn->subbuffer + 7, 2); in sendsuboption() 1255 pfd[0].fd = conn->sock[FIRSTSOCKET]; in send_telnet_data() 1264 result = Curl_write(conn, conn->sock[FIRSTSOCKET], in send_telnet_data() 1302 curl_socket_t sockfd = conn->sock[FIRSTSOCKET]; in telnet_do()
|
D | http.c | 1445 result = Curl_proxy_connect(conn, FIRSTSOCKET); in Curl_http_connect() 1488 socks[0] = conn->sock[FIRSTSOCKET]; in http_getsock_do() 1528 FIRSTSOCKET); in add_haproxy_protocol_header() 1540 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, done); in https_connecting() 2698 &data->info.request_size, 0, FIRSTSOCKET); in Curl_http() 2703 Curl_setup_transfer(data, FIRSTSOCKET, -1, TRUE, in Curl_http() 2704 postsize?FIRSTSOCKET:-1); in Curl_http() 2719 &data->info.request_size, 0, FIRSTSOCKET); in Curl_http() 2724 Curl_setup_transfer(data, FIRSTSOCKET, -1, TRUE, -1); in Curl_http() 2787 &data->info.request_size, 0, FIRSTSOCKET); in Curl_http() [all …]
|
D | ssh.c | 642 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in ssh_statemach_act() 1811 Curl_setup_transfer(data, -1, -1, FALSE, FIRSTSOCKET); in ssh_statemach_act() 2253 Curl_setup_transfer(data, FIRSTSOCKET, data->req.size, FALSE, -1); in ssh_statemach_act() 2397 Curl_setup_transfer(data, -1, data->req.size, FALSE, FIRSTSOCKET); in ssh_statemach_act() 2468 Curl_setup_transfer(data, FIRSTSOCKET, bytecount, FALSE, -1); in ssh_statemach_act() 2718 sock[0] = conn->sock[FIRSTSOCKET]; in ssh_perform_getsock() 2721 bitmap |= GETSOCK_READSOCK(FIRSTSOCKET); in ssh_perform_getsock() 2724 bitmap |= GETSOCK_WRITESOCK(FIRSTSOCKET); in ssh_perform_getsock() 2837 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in ssh_block_statemach() 2894 conn->recv[FIRSTSOCKET] = scp_recv; in ssh_connect() [all …]
|
D | connect.c | 567 if(sockindex == FIRSTSOCKET) { in trynextip() 747 DEBUGASSERT(sockindex >= FIRSTSOCKET && sockindex <= SECONDARYSOCKET); in Curl_is_connected() 824 if(sockindex == FIRSTSOCKET) in Curl_is_connected() 1281 return c->sock[FIRSTSOCKET]; in Curl_getconnectinfo() 1293 if(conn->ssl[FIRSTSOCKET].use) { in Curl_connalive() 1300 else if(conn->sock[FIRSTSOCKET] == CURL_SOCKET_BAD) in Curl_connalive() 1305 if(recv((RECV_TYPE_ARG1)conn->sock[FIRSTSOCKET], (RECV_TYPE_ARG2)&buf, in Curl_connalive()
|
D | smtp.c | 384 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &smtpc->ssldone); in smtp_perform_upgrade_tls() 715 if(data->set.use_ssl <= CURLUSESSL_TRY || conn->ssl[FIRSTSOCKET].use) in smtp_state_ehlo_resp() 776 if(data->set.use_ssl && !conn->ssl[FIRSTSOCKET].use) { in smtp_state_ehlo_resp() 962 Curl_setup_transfer(data, -1, -1, FALSE, FIRSTSOCKET); in smtp_state_data_resp() 993 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in smtp_statemach_act() 1082 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &smtpc->ssldone); in smtp_multi_statemach() 1316 *connected = conn->bits.tcpconnect[FIRSTSOCKET]; in smtp_perform()
|
D | url.c | 684 Curl_ssl_close(conn, FIRSTSOCKET); in conn_shutdown() 690 if(CURL_SOCKET_BAD != conn->sock[FIRSTSOCKET]) in conn_shutdown() 691 Curl_closesocket(conn, conn->sock[FIRSTSOCKET]); in conn_shutdown() 995 dead = SocketIsDead(conn->sock[FIRSTSOCKET]); in extract_if_dead() 1205 if((check->sock[FIRSTSOCKET] == CURL_SOCKET_BAD) || in ConnectionExists() 1277 if(check->proxy_ssl[FIRSTSOCKET].state != ssl_connection_complete) in ConnectionExists() 1284 if(check->ssl[FIRSTSOCKET].state != ssl_connection_complete) in ConnectionExists() 1359 if(check->ssl[FIRSTSOCKET].state != ssl_connection_complete) { in ConnectionExists() 1581 socks[0] = conn->sock[FIRSTSOCKET]; in Curl_protocol_getsock() 1646 if(conn->bits.tcpconnect[FIRSTSOCKET] && conn->bits.protoconnstart) { in Curl_protocol_connect() [all …]
|
D | pop3.c | 364 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &pop3c->ssldone); in pop3_perform_upgrade_tls() 730 if(data->set.use_ssl && !conn->ssl[FIRSTSOCKET].use) { in pop3_state_capa_resp() 915 Curl_setup_transfer(data, FIRSTSOCKET, -1, FALSE, -1); in pop3_state_command_resp() 945 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in pop3_statemach_act() 1023 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &pop3c->ssldone); in pop3_multi_statemach() 1182 *connected = conn->bits.tcpconnect[FIRSTSOCKET]; in pop3_perform()
|
D | http2.c | 116 sock[0] = conn->sock[FIRSTSOCKET]; in http2_perform_getsock() 120 bitmap |= GETSOCK_READSOCK(FIRSTSOCKET); in http2_perform_getsock() 125 bitmap |= GETSOCK_WRITESOCK(FIRSTSOCKET); in http2_perform_getsock() 190 sval = SOCKET_READABLE(conn->sock[FIRSTSOCKET], 0); in http2_connisdead() 212 conn, FIRSTSOCKET, httpc->inbuf, H2_BUFSIZE, &result); in http2_connisdead() 406 written = ((Curl_send*)c->send_underlying)(conn, FIRSTSOCKET, in send_callback() 1680 conn, FIRSTSOCKET, httpc->inbuf, H2_BUFSIZE, &result); in http2_recv() 2219 httpc->recv_underlying = conn->recv[FIRSTSOCKET]; in Curl_http2_switched() 2220 httpc->send_underlying = conn->send[FIRSTSOCKET]; in Curl_http2_switched() 2221 conn->recv[FIRSTSOCKET] = http2_recv; in Curl_http2_switched() [all …]
|
D | smb.c | 298 result = Curl_read(conn, FIRSTSOCKET, buf + smbc->got, len, &bytes_read); in smb_recv_message() 370 result = Curl_write(conn, FIRSTSOCKET, conn->data->state.ulbuf, in smb_send() 395 result = Curl_write(conn, FIRSTSOCKET, in smb_flush() 654 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &ssl_done); in smb_connection_state() 943 socks[0] = conn->sock[FIRSTSOCKET]; in smb_getsock()
|
D | ftp.c | 380 curl_socket_t ctrl_sock = conn->sock[FIRSTSOCKET]; in ReceivedServerConnect() 633 curl_socket_t sockfd = conn->sock[FIRSTSOCKET]; in Curl_GetFTPResponse() 686 else if(!Curl_conn_data_pending(conn, FIRSTSOCKET)) { in Curl_GetFTPResponse() 841 socks[0] = conn->sock[FIRSTSOCKET]; in ftp_domore_getsock() 1062 if(getsockname(conn->sock[FIRSTSOCKET], sa, &sslen)) { in ftp_state_use_port() 1146 if(getsockname(conn->sock[FIRSTSOCKET], sa, &sslen)) { in ftp_state_use_port() 2500 if(conn->ssl[FIRSTSOCKET].use) { in ftp_state_loggedin() 2600 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in ftp_statemach_act() 2647 (!conn->ssl[FIRSTSOCKET].use || in ftp_statemach_act() 2648 (conn->bits.proxy_ssl_connected[FIRSTSOCKET] && in ftp_statemach_act() [all …]
|
D | imap.c | 469 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &imapc->ssldone); in imap_perform_upgrade_tls() 926 if(data->set.use_ssl && !conn->ssl[FIRSTSOCKET].use) { in imap_state_capability_resp() 1184 Curl_setup_transfer(data, FIRSTSOCKET, size, FALSE, -1); in imap_state_fetch_resp() 1234 Curl_setup_transfer(data, -1, -1, FALSE, FIRSTSOCKET); in imap_state_append_resp() 1264 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in imap_statemach_act() 1360 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &imapc->ssldone); in imap_multi_statemach() 1582 *connected = conn->bits.tcpconnect[FIRSTSOCKET]; in imap_perform()
|
D | url.h | 104 !conn->bits.proxy_ssl_connected[FIRSTSOCKET])
|
D | security.c | 546 conn->recv[FIRSTSOCKET] = sec_recv; in choose_mech() 547 conn->send[FIRSTSOCKET] = sec_send; in choose_mech()
|
D | krb5.c | 169 if(getsockname(conn->sock[FIRSTSOCKET], in krb5_auth()
|
D | tftp.c | 1009 state->sockfd = state->conn->sock[FIRSTSOCKET]; in tftp_connect() 1091 socks[0] = conn->sock[FIRSTSOCKET]; in tftp_getsock()
|
D | multi.c | 860 sock[0] = conn->sock[FIRSTSOCKET]; in waitproxyconnect_getsock() 1510 data->conn->bits.proxy_ssl_connected[FIRSTSOCKET]) && in multi_runsingle() 1524 result = Curl_is_connected(data->conn, FIRSTSOCKET, &connected); in multi_runsingle() 1528 !data->conn->bits.proxy_ssl_connected[FIRSTSOCKET]) || in multi_runsingle()
|
/external/curl/lib/vtls/ |
D | vtls.c | 521 struct ssl_connect_data *connssl = &conn->ssl[FIRSTSOCKET]; in Curl_ssl_getsock() 528 socks[0] = conn->sock[FIRSTSOCKET]; in Curl_ssl_getsock() 533 socks[0] = conn->sock[FIRSTSOCKET]; in Curl_ssl_getsock()
|
D | vtls.h | 135 CURL_SOCKET_BAD ? FIRSTSOCKET : SECONDARYSOCKET].state)
|