Home
last modified time | relevance | path

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

12

/external/curl/lib/vtls/
Daxtls.c129 static CURLcode connect_prep(struct connectdata *conn, int sockindex) in connect_prep() argument
131 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in connect_prep()
264 sockindex)) { in connect_prep()
267 ssl = ssl_client_new(ssl_ctx, conn->sock[sockindex], in connect_prep()
274 ssl = ssl_client_new(ssl_ctx, conn->sock[sockindex], NULL, 0, NULL); in connect_prep()
280 static void Curl_axtls_close(struct connectdata *conn, int sockindex) in Curl_axtls_close() argument
282 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in Curl_axtls_close()
300 static CURLcode connect_finish(struct connectdata *conn, int sockindex) in connect_finish() argument
303 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in connect_finish()
322 Curl_axtls_close(conn, sockindex); in connect_finish()
[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()
220 int sockindex) in polarssl_connect_step1() argument
223 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in polarssl_connect_step1()
368 CURLcode result = set_ssl_version_min_max(conn, sockindex); in polarssl_connect_step1()
384 net_recv, &conn->sock[sockindex], in polarssl_connect_step1()
385 net_send, &conn->sock[sockindex]); in polarssl_connect_step1()
394 if(!Curl_ssl_getsessionid(conn, &old_session, NULL, sockindex)) { in polarssl_connect_step1()
454 int sockindex) in polarssl_connect_step2() argument
458 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in polarssl_connect_step2()
[all …]
Dvtls.c207 ssl_connect_init_proxy(struct connectdata *conn, int sockindex) in ssl_connect_init_proxy() argument
209 DEBUGASSERT(conn->bits.proxy_ssl_connected[sockindex]); in ssl_connect_init_proxy()
210 if(ssl_connection_complete == conn->ssl[sockindex].state && in ssl_connect_init_proxy()
211 !conn->proxy_ssl[sockindex].use) { in ssl_connect_init_proxy()
219 pbdata = conn->proxy_ssl[sockindex].backend; in ssl_connect_init_proxy()
220 conn->proxy_ssl[sockindex] = conn->ssl[sockindex]; in ssl_connect_init_proxy()
222 memset(&conn->ssl[sockindex], 0, sizeof(conn->ssl[sockindex])); in ssl_connect_init_proxy()
225 conn->ssl[sockindex].backend = pbdata; in ssl_connect_init_proxy()
231 Curl_ssl_connect(struct connectdata *conn, int sockindex) in Curl_ssl_connect() argument
235 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()
242 int sockindex) in mbed_connect_step1() argument
245 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in mbed_connect_step1()
420 CURLcode result = set_ssl_version_min_max(conn, sockindex); in mbed_connect_step1()
434 mbedtls_ssl_set_bio(&BACKEND->ssl, &conn->sock[sockindex], in mbed_connect_step1()
457 if(!Curl_ssl_getsessionid(conn, &old_session, NULL, sockindex)) { in mbed_connect_step1()
535 int sockindex) in mbed_connect_step2() argument
539 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in mbed_connect_step2()
552 conn->recv[sockindex] = mbed_recv; in mbed_connect_step2()
[all …]
Dcyassl.c152 int sockindex) in cyassl_connect_step1() argument
157 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in cyassl_connect_step1()
159 curl_socket_t sockfd = conn->sock[sockindex]; in cyassl_connect_step1()
423 if(!Curl_ssl_getsessionid(conn, &ssl_sessionid, NULL, sockindex)) { in cyassl_connect_step1()
451 int sockindex) in cyassl_connect_step2() argument
455 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in cyassl_connect_step2()
464 conn->recv[sockindex] = cyassl_recv; in cyassl_connect_step2()
465 conn->send[sockindex] = cyassl_send; in cyassl_connect_step2()
631 int sockindex) in cyassl_connect_step3() argument
635 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in cyassl_connect_step3()
[all …]
Dvtls.h50 int (*shutdown)(struct connectdata *conn, int sockindex);
59 CURLcode (*connect)(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);
151 CURLcode Curl_ssl_connect(struct connectdata *conn, int sockindex);
153 int sockindex,
158 void Curl_ssl_close(struct connectdata *conn, int sockindex);
159 CURLcode Curl_ssl_shutdown(struct connectdata *conn, int sockindex);
205 int sockindex);
[all …]
Dschannel.c169 static CURLcode verify_certificate(struct connectdata *conn, int sockindex);
224 schannel_connect_step1(struct connectdata *conn, int sockindex) in schannel_connect_step1() argument
228 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in schannel_connect_step1()
276 if(!Curl_ssl_getsessionid(conn, (void **)&old_cred, NULL, sockindex)) { in schannel_connect_step1()
503 result = Curl_write_plain(conn, conn->sock[sockindex], outbuf.pvBuffer, in schannel_connect_step1()
527 schannel_connect_step2(struct connectdata *conn, int sockindex) in schannel_connect_step2() argument
532 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in schannel_connect_step2()
599 result = Curl_read_plain(conn->sock[sockindex], in schannel_connect_step2()
692 result = Curl_write_plain(conn, conn->sock[sockindex], in schannel_connect_step2()
768 return verify_certificate(conn, sockindex); in schannel_connect_step2()
[all …]
Dgtls.c283 int sockindex, in handshake() argument
288 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in handshake()
290 curl_socket_t sockfd = conn->sock[sockindex]; in handshake()
484 int sockindex) in gtls_connect_step1() argument
487 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in gtls_connect_step1()
853 if(conn->proxy_ssl[sockindex].use) { in gtls_connect_step1()
854 transport_ptr = conn->proxy_ssl[sockindex].backend->session; in gtls_connect_step1()
860 transport_ptr = GNUTLS_SOCKET_TO_POINTER_CAST(conn->sock[sockindex]); in gtls_connect_step1()
892 if(!Curl_ssl_getsessionid(conn, &ssl_sessionid, &ssl_idsize, sockindex)) { in gtls_connect_step1()
967 int sockindex) in gtls_connect_step3() argument
[all …]
Ddarwinssl.c1219 set_ssl_version_min_max(struct connectdata *conn, int sockindex) in set_ssl_version_min_max() argument
1222 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in set_ssl_version_min_max()
1317 int sockindex) argument
1320 curl_socket_t sockfd = conn->sock[sockindex];
1321 struct ssl_connect_data *connssl = &conn->ssl[sockindex];
1398 CURLcode result = set_ssl_version_min_max(conn, sockindex);
1447 CURLcode result = set_ssl_version_min_max(conn, sockindex);
1824 &ssl_sessionid_len, sockindex)) {
1852 sockindex);
2265 darwinssl_connect_step2(struct connectdata *conn, int sockindex) argument
[all …]
Dnss.c617 static CURLcode nss_load_key(struct connectdata *conn, int sockindex, in nss_load_key() argument
626 (void)sockindex; /* unused */ in nss_load_key()
666 static CURLcode cert_stuff(struct connectdata *conn, int sockindex, in cert_stuff() argument
673 result = nss_load_cert(&conn->ssl[sockindex], cert_file, PR_FALSE); in cert_stuff()
687 result = nss_load_key(conn, sockindex, key_file); in cert_stuff()
690 result = nss_load_key(conn, sockindex, cert_file); in cert_stuff()
1486 static void Curl_nss_close(struct connectdata *conn, int sockindex) in Curl_nss_close() argument
1488 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in Curl_nss_close()
1489 struct ssl_connect_data *connssl_proxy = &conn->proxy_ssl[sockindex]; in Curl_nss_close()
1494 fake_sclose(conn->sock[sockindex]); in Curl_nss_close()
[all …]
Dopenssl.c1173 static void Curl_ossl_close(struct connectdata *conn, int sockindex) in Curl_ossl_close() argument
1175 ossl_close(&conn->ssl[sockindex]); in Curl_ossl_close()
1176 ossl_close(&conn->proxy_ssl[sockindex]); in Curl_ossl_close()
1183 static int Curl_ossl_shutdown(struct connectdata *conn, int sockindex) in Curl_ossl_shutdown() argument
1186 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in Curl_ossl_shutdown()
1207 int what = SOCKET_READABLE(conn->sock[sockindex], in Curl_ossl_shutdown()
1954 int sockindex) in set_ssl_version_min_max() argument
1972 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in set_ssl_version_min_max()
1977 (void)sockindex; in set_ssl_version_min_max()
2032 static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex) in ossl_connect_step1() argument
[all …]
/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.c551 int sockindex, in trynextip() argument
564 if(sockindex == FIRSTSOCKET) { in trynextip()
729 int sockindex, in Curl_is_connected() argument
740 DEBUGASSERT(sockindex >= FIRSTSOCKET && sockindex <= SECONDARYSOCKET); in Curl_is_connected()
744 if(conn->bits.tcpconnect[sockindex]) { in Curl_is_connected()
787 trynextip(conn, sockindex, 1); in Curl_is_connected()
795 conn->sock[sockindex] = conn->tempsock[i]; in Curl_is_connected()
809 result = Curl_connected_proxy(conn, sockindex); in Curl_is_connected()
813 conn->bits.tcpconnect[sockindex] = TRUE; in Curl_is_connected()
816 if(sockindex == FIRSTSOCKET) in Curl_is_connected()
[all …]
Dcurl_rtmp.c278 static ssize_t rtmp_recv(struct connectdata *conn, int sockindex, char *buf, in rtmp_recv() argument
284 (void)sockindex; /* unused */ in rtmp_recv()
299 static ssize_t rtmp_send(struct connectdata *conn, int sockindex, in rtmp_send() argument
305 (void)sockindex; /* unused */ in rtmp_send()
Dconnect.h31 int sockindex,
146 bool Curl_conn_data_pending(struct connectdata *conn, int sockindex);
Durl.h75 CURLcode Curl_connected_proxy(struct connectdata *conn, int sockindex);
85 !conn->bits.proxy_ssl_connected[sockindex])
Dsocks.c111 int sockindex, in Curl_SOCKS4() argument
121 curl_socket_t sock = conn->sock[sockindex]; in Curl_SOCKS4()
357 int sockindex, in Curl_SOCKS5() argument
383 curl_socket_t sock = conn->sock[sockindex]; in Curl_SOCKS5()
502 code = Curl_SOCKS5_gssapi_negotiate(sockindex, conn); in Curl_SOCKS5()
Dtransfer.c1246 unsigned sockindex = 0; in Curl_single_getsock() local
1260 bitmap |= GETSOCK_READSOCK(sockindex); in Curl_single_getsock()
1261 sock[sockindex] = conn->sockfd; in Curl_single_getsock()
1272 sockindex++; /* increase index if we need two entries */ in Curl_single_getsock()
1276 sock[sockindex] = conn->writesockfd; in Curl_single_getsock()
1279 bitmap |= GETSOCK_WRITESOCK(sockindex); in Curl_single_getsock()
1967 int sockindex, /* socket index to read from or -1 */ in Curl_setup_transfer() argument
1984 DEBUGASSERT((sockindex <= 1) && (sockindex >= -1)); in Curl_setup_transfer()
1987 conn->sockfd = sockindex == -1 ? in Curl_setup_transfer()
1988 CURL_SOCKET_BAD : conn->sock[sockindex]; in Curl_setup_transfer()
Dsecurity.c230 static ssize_t sec_recv(struct connectdata *conn, int sockindex, in sec_recv() argument
235 curl_socket_t fd = conn->sock[sockindex]; in sec_recv()
349 static ssize_t sec_send(struct connectdata *conn, int sockindex, in sec_send() argument
352 curl_socket_t fd = conn->sock[sockindex]; in sec_send()
Dhttp_proxy.h37 CURLcode Curl_proxy_connect(struct connectdata *conn, int sockindex);
Dsendf.c134 bool Curl_recv_has_postponed_data(struct connectdata *conn, int sockindex) in Curl_recv_has_postponed_data() argument
136 struct postponed_data * const psnd = &(conn->postponed[sockindex]); in Curl_recv_has_postponed_data()
220 bool Curl_recv_has_postponed_data(struct connectdata *conn, int sockindex) in Curl_recv_has_postponed_data() argument
223 (void)sockindex; in Curl_recv_has_postponed_data()
Dtransfer.h60 int sockindex, /* socket index to read from or -1 */
Dsendf.h59 bool Curl_recv_has_postponed_data(struct connectdata *conn, int sockindex);

12