Home
last modified time | relevance | path

Searched refs:sockindex (Results 1 – 25 of 36) sorted by relevance

12

/external/curl/lib/vtls/
Dmesalink.c81 mesalink_connect_step1(struct connectdata *conn, int sockindex) in mesalink_connect_step1() argument
85 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in mesalink_connect_step1()
98 curl_socket_t sockfd = conn->sock[sockindex]; in mesalink_connect_step1()
230 if(!Curl_ssl_getsessionid(conn, &ssl_sessionid, NULL, sockindex)) { in mesalink_connect_step1()
257 mesalink_connect_step2(struct connectdata *conn, int sockindex) in mesalink_connect_step2() argument
261 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in mesalink_connect_step2()
263 conn->recv[sockindex] = mesalink_recv; in mesalink_connect_step2()
264 conn->send[sockindex] = mesalink_send; in mesalink_connect_step2()
302 mesalink_connect_step3(struct connectdata *conn, int sockindex) in mesalink_connect_step3() argument
305 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in mesalink_connect_step3()
[all …]
Dgskit.c498 static void cancel_async_handshake(struct connectdata *conn, int sockindex) in cancel_async_handshake() argument
500 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in cancel_async_handshake()
503 if(QsoCancelOperation(conn->sock[sockindex], 0) > 0) in cancel_async_handshake()
608 static int pipe_ssloverssl(struct connectdata *conn, int sockindex, in pipe_ssloverssl() argument
611 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in pipe_ssloverssl()
612 struct ssl_connect_data *connproxyssl = &conn->proxy_ssl[sockindex]; in pipe_ssloverssl()
635 FD_SET(conn->sock[sockindex], &fds_write); in pipe_ssloverssl()
636 if(n < conn->sock[sockindex]) in pipe_ssloverssl()
637 n = conn->sock[sockindex]; in pipe_ssloverssl()
666 FD_ISSET(conn->sock[sockindex], &fds_write)) { in pipe_ssloverssl()
[all …]
Dpolarssl.c174 set_ssl_version_min_max(struct connectdata *conn, int sockindex) in set_ssl_version_min_max() argument
177 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in set_ssl_version_min_max()
217 int sockindex) in polarssl_connect_step1() argument
220 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in polarssl_connect_step1()
365 CURLcode result = set_ssl_version_min_max(conn, sockindex); in polarssl_connect_step1()
381 net_recv, &conn->sock[sockindex], in polarssl_connect_step1()
382 net_send, &conn->sock[sockindex]); in polarssl_connect_step1()
391 if(!Curl_ssl_getsessionid(conn, &old_session, NULL, sockindex)) { in polarssl_connect_step1()
451 int sockindex) in polarssl_connect_step2() argument
455 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in polarssl_connect_step2()
[all …]
Dvtls.c210 ssl_connect_init_proxy(struct connectdata *conn, int sockindex) in ssl_connect_init_proxy() argument
212 DEBUGASSERT(conn->bits.proxy_ssl_connected[sockindex]); in ssl_connect_init_proxy()
213 if(ssl_connection_complete == conn->ssl[sockindex].state && in ssl_connect_init_proxy()
214 !conn->proxy_ssl[sockindex].use) { in ssl_connect_init_proxy()
222 pbdata = conn->proxy_ssl[sockindex].backend; in ssl_connect_init_proxy()
223 conn->proxy_ssl[sockindex] = conn->ssl[sockindex]; in ssl_connect_init_proxy()
225 memset(&conn->ssl[sockindex], 0, sizeof(conn->ssl[sockindex])); in ssl_connect_init_proxy()
228 conn->ssl[sockindex].backend = pbdata; in ssl_connect_init_proxy()
234 Curl_ssl_connect(struct connectdata *conn, int sockindex) in Curl_ssl_connect() argument
238 if(conn->bits.proxy_ssl_connected[sockindex]) { in Curl_ssl_connect()
[all …]
Dmbedtls.c194 set_ssl_version_min_max(struct connectdata *conn, int sockindex) in set_ssl_version_min_max() argument
197 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in set_ssl_version_min_max()
239 int sockindex) in mbed_connect_step1() argument
242 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in mbed_connect_step1()
417 CURLcode result = set_ssl_version_min_max(conn, sockindex); in mbed_connect_step1()
431 mbedtls_ssl_set_bio(&BACKEND->ssl, &conn->sock[sockindex], in mbed_connect_step1()
454 if(!Curl_ssl_getsessionid(conn, &old_session, NULL, sockindex)) { in mbed_connect_step1()
532 int sockindex) in mbed_connect_step2() argument
536 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in mbed_connect_step2()
549 conn->recv[sockindex] = mbed_recv; in mbed_connect_step2()
[all …]
Dcyassl.c143 int sockindex) in cyassl_connect_step1() argument
148 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in cyassl_connect_step1()
150 curl_socket_t sockfd = conn->sock[sockindex]; in cyassl_connect_step1()
419 if(!Curl_ssl_getsessionid(conn, &ssl_sessionid, NULL, sockindex)) { in cyassl_connect_step1()
447 int sockindex) in cyassl_connect_step2() argument
451 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in cyassl_connect_step2()
460 conn->recv[sockindex] = cyassl_recv; in cyassl_connect_step2()
461 conn->send[sockindex] = cyassl_send; in cyassl_connect_step2()
627 int sockindex) in cyassl_connect_step3() argument
631 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in cyassl_connect_step3()
[all …]
Dvtls.h50 int (*shut_down)(struct connectdata *conn, int sockindex);
59 CURLcode (*connect_blocking)(struct connectdata *conn, int sockindex);
60 CURLcode (*connect_nonblocking)(struct connectdata *conn, int sockindex,
63 void (*close_one)(struct connectdata *conn, int sockindex);
85 int Curl_none_shutdown(struct connectdata *conn, int sockindex);
154 CURLcode Curl_ssl_connect(struct connectdata *conn, int sockindex);
156 int sockindex,
161 void Curl_ssl_close(struct connectdata *conn, int sockindex);
162 CURLcode Curl_ssl_shutdown(struct connectdata *conn, int sockindex);
208 int sockindex);
[all …]
Dgtls.c280 int sockindex, in handshake() argument
285 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in handshake()
287 curl_socket_t sockfd = conn->sock[sockindex]; in handshake()
521 int sockindex) in gtls_connect_step1() argument
524 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in gtls_connect_step1()
896 if(conn->proxy_ssl[sockindex].use) { in gtls_connect_step1()
897 transport_ptr = conn->proxy_ssl[sockindex].backend->session; in gtls_connect_step1()
903 transport_ptr = &conn->sock[sockindex]; in gtls_connect_step1()
935 if(!Curl_ssl_getsessionid(conn, &ssl_sessionid, &ssl_idsize, sockindex)) { in gtls_connect_step1()
1010 int sockindex) in gtls_connect_step3() argument
[all …]
Dschannel.c153 static CURLcode pkp_pin_peer_pubkey(struct connectdata *conn, int sockindex,
414 schannel_connect_step1(struct connectdata *conn, int sockindex) in schannel_connect_step1() argument
418 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in schannel_connect_step1()
499 if(!Curl_ssl_getsessionid(conn, (void **)&old_cred, NULL, sockindex)) { in schannel_connect_step1()
840 result = Curl_write_plain(conn, conn->sock[sockindex], outbuf.pvBuffer, in schannel_connect_step1()
864 schannel_connect_step2(struct connectdata *conn, int sockindex) in schannel_connect_step2() argument
869 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in schannel_connect_step2()
938 result = Curl_read_plain(conn->sock[sockindex], in schannel_connect_step2()
1034 result = Curl_write_plain(conn, conn->sock[sockindex], in schannel_connect_step2()
1129 result = pkp_pin_peer_pubkey(conn, sockindex, pubkey_ptr); in schannel_connect_step2()
[all …]
Dnss.c658 static CURLcode nss_load_key(struct connectdata *conn, int sockindex, in nss_load_key() argument
667 (void)sockindex; /* unused */ in nss_load_key()
707 static CURLcode cert_stuff(struct connectdata *conn, int sockindex, in cert_stuff() argument
714 result = nss_load_cert(&conn->ssl[sockindex], cert_file, PR_FALSE); in cert_stuff()
728 result = nss_load_key(conn, sockindex, key_file); in cert_stuff()
731 result = nss_load_key(conn, sockindex, cert_file); in cert_stuff()
1528 static void Curl_nss_close(struct connectdata *conn, int sockindex) in Curl_nss_close() argument
1530 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in Curl_nss_close()
1531 struct ssl_connect_data *connssl_proxy = &conn->proxy_ssl[sockindex]; in Curl_nss_close()
1536 fake_sclose(conn->sock[sockindex]); in Curl_nss_close()
[all …]
Dsectransp.c1274 set_ssl_version_min_max(struct connectdata *conn, int sockindex) in set_ssl_version_min_max() argument
1277 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in set_ssl_version_min_max()
1370 int sockindex) argument
1373 curl_socket_t sockfd = conn->sock[sockindex];
1374 struct ssl_connect_data *connssl = &conn->ssl[sockindex];
1452 CURLcode result = set_ssl_version_min_max(conn, sockindex);
1501 CURLcode result = set_ssl_version_min_max(conn, sockindex);
1920 &ssl_sessionid_len, sockindex)) {
1948 sockindex);
2345 sectransp_connect_step2(struct connectdata *conn, int sockindex) argument
[all …]
Dopenssl.c1287 static void Curl_ossl_close(struct connectdata *conn, int sockindex) in Curl_ossl_close() argument
1289 ossl_close(&conn->ssl[sockindex]); in Curl_ossl_close()
1290 ossl_close(&conn->proxy_ssl[sockindex]); in Curl_ossl_close()
1297 static int Curl_ossl_shutdown(struct connectdata *conn, int sockindex) in Curl_ossl_shutdown() argument
1300 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in Curl_ossl_shutdown()
1321 int what = SOCKET_READABLE(conn->sock[sockindex], in Curl_ossl_shutdown()
2158 int sockindex) in set_ssl_version_min_max() argument
2172 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in set_ssl_version_min_max()
2177 (void)sockindex; in set_ssl_version_min_max()
2239 int sockindex; in ossl_new_session_cb() local
[all …]
Dschannel.h56 CURLcode Curl_verify_certificate(struct connectdata *conn, int sockindex);
/external/curl/lib/
Dhttp_proxy.c50 static CURLcode https_proxy_connect(struct connectdata *conn, int sockindex) in https_proxy_connect() argument
55 if(!conn->bits.proxy_ssl_connected[sockindex]) { in https_proxy_connect()
58 Curl_ssl_connect_nonblocking(conn, sockindex, in https_proxy_connect()
59 &conn->bits.proxy_ssl_connected[sockindex]); in https_proxy_connect()
67 (void) sockindex; in https_proxy_connect()
72 CURLcode Curl_proxy_connect(struct connectdata *conn, int sockindex) in Curl_proxy_connect() argument
75 const CURLcode result = https_proxy_connect(conn, sockindex); in Curl_proxy_connect()
78 if(!conn->bits.proxy_ssl_connected[sockindex]) in Curl_proxy_connect()
114 else if(sockindex == SECONDARYSOCKET) in Curl_proxy_connect()
119 if(sockindex == SECONDARYSOCKET) in Curl_proxy_connect()
[all …]
Dsocks.h51 int sockindex,
62 int sockindex,
69 CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex,
Dconnect.c554 int sockindex, in trynextip() argument
567 if(sockindex == FIRSTSOCKET) { in trynextip()
736 int sockindex, in Curl_is_connected() argument
747 DEBUGASSERT(sockindex >= FIRSTSOCKET && sockindex <= SECONDARYSOCKET); in Curl_is_connected()
751 if(conn->bits.tcpconnect[sockindex]) { in Curl_is_connected()
795 trynextip(conn, sockindex, 1); in Curl_is_connected()
803 conn->sock[sockindex] = conn->tempsock[i]; in Curl_is_connected()
817 result = Curl_connected_proxy(conn, sockindex); in Curl_is_connected()
821 conn->bits.tcpconnect[sockindex] = TRUE; in Curl_is_connected()
824 if(sockindex == FIRSTSOCKET) in Curl_is_connected()
[all …]
Dcurl_rtmp.c281 static ssize_t rtmp_recv(struct connectdata *conn, int sockindex, char *buf, in rtmp_recv() argument
287 (void)sockindex; /* unused */ in rtmp_recv()
302 static ssize_t rtmp_send(struct connectdata *conn, int sockindex, in rtmp_send() argument
308 (void)sockindex; /* unused */ in rtmp_send()
Dtransfer.c1425 unsigned sockindex = 0; in Curl_single_getsock() local
1439 bitmap |= GETSOCK_READSOCK(sockindex); in Curl_single_getsock()
1440 sock[sockindex] = conn->sockfd; in Curl_single_getsock()
1451 sockindex++; /* increase index if we need two entries */ in Curl_single_getsock()
1455 sock[sockindex] = conn->writesockfd; in Curl_single_getsock()
1458 bitmap |= GETSOCK_WRITESOCK(sockindex); in Curl_single_getsock()
1875 int sockindex, /* socket index to read from or -1 */ in Curl_setup_transfer() argument
1885 DEBUGASSERT((sockindex <= 1) && (sockindex >= -1)); in Curl_setup_transfer()
1889 conn->sockfd = sockindex == -1 ? in Curl_setup_transfer()
1891 conn->sock[sockindex]; in Curl_setup_transfer()
[all …]
Dconnect.h31 int sockindex,
142 bool Curl_conn_data_pending(struct connectdata *conn, int sockindex);
Durl.h90 CURLcode Curl_connected_proxy(struct connectdata *conn, int sockindex);
100 !conn->bits.proxy_ssl_connected[sockindex])
Dsocks.c110 int sockindex, in Curl_SOCKS4() argument
119 curl_socket_t sock = conn->sock[sockindex]; in Curl_SOCKS4()
356 int sockindex, in Curl_SOCKS5() argument
382 curl_socket_t sock = conn->sock[sockindex]; in Curl_SOCKS5()
501 code = Curl_SOCKS5_gssapi_negotiate(sockindex, conn); in Curl_SOCKS5()
Dsecurity.c232 static ssize_t sec_recv(struct connectdata *conn, int sockindex, in sec_recv() argument
237 curl_socket_t fd = conn->sock[sockindex]; in sec_recv()
351 static ssize_t sec_send(struct connectdata *conn, int sockindex, in sec_send() argument
354 curl_socket_t fd = conn->sock[sockindex]; in sec_send()
Dhttp_proxy.h37 CURLcode Curl_proxy_connect(struct connectdata *conn, int sockindex);
Dsendf.c135 bool Curl_recv_has_postponed_data(struct connectdata *conn, int sockindex) in Curl_recv_has_postponed_data() argument
137 struct postponed_data * const psnd = &(conn->postponed[sockindex]); in Curl_recv_has_postponed_data()
221 bool Curl_recv_has_postponed_data(struct connectdata *conn, int sockindex) in Curl_recv_has_postponed_data() argument
224 (void)sockindex; in Curl_recv_has_postponed_data()
Dtransfer.h63 int sockindex, /* socket index to read from or -1 */

12