/external/curl/lib/vtls/ |
D | axtls.c | 138 static CURLcode connect_prep(struct connectdata *conn, int sockindex) in connect_prep() argument 156 if(conn->ssl[sockindex].state == ssl_connection_complete) in connect_prep() 184 conn->ssl[sockindex].ssl_ctx = ssl_ctx; in connect_prep() 185 conn->ssl[sockindex].ssl = NULL; in connect_prep() 265 ssl = ssl_client_new(ssl_ctx, conn->sock[sockindex], in connect_prep() 269 ssl = ssl_client_new(ssl_ctx, conn->sock[sockindex], NULL, 0); in connect_prep() 271 conn->ssl[sockindex].ssl = ssl; in connect_prep() 279 static CURLcode connect_finish(struct connectdata *conn, int sockindex) in connect_finish() argument 282 SSL *ssl = conn->ssl[sockindex].ssl; in connect_finish() 298 Curl_axtls_close(conn, sockindex); in connect_finish() [all …]
|
D | polarssl.c | 131 int sockindex) in polarssl_connect_step1() argument 134 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in polarssl_connect_step1() 327 net_recv, &conn->sock[sockindex], in polarssl_connect_step1() 328 net_send, &conn->sock[sockindex]); in polarssl_connect_step1() 388 int sockindex) in polarssl_connect_step2() argument 392 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in polarssl_connect_step2() 398 conn->recv[sockindex] = polarssl_recv; in polarssl_connect_step2() 399 conn->send[sockindex] = polarssl_send; in polarssl_connect_step2() 425 ssl_get_ciphersuite(&conn->ssl[sockindex].ssl) ); in polarssl_connect_step2() 427 ret = ssl_get_verify_result(&conn->ssl[sockindex].ssl); in polarssl_connect_step2() [all …]
|
D | cyassl.c | 100 int sockindex) in cyassl_connect_step1() argument 104 struct ssl_connect_data* conssl = &conn->ssl[sockindex]; in cyassl_connect_step1() 107 curl_socket_t sockfd = conn->sock[sockindex]; in cyassl_connect_step1() 329 int sockindex) in cyassl_connect_step2() argument 333 struct ssl_connect_data* conssl = &conn->ssl[sockindex]; in cyassl_connect_step2() 335 conn->recv[sockindex] = cyassl_recv; in cyassl_connect_step2() 336 conn->send[sockindex] = cyassl_send; in cyassl_connect_step2() 454 int sockindex) in cyassl_connect_step3() argument 459 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in cyassl_connect_step3() 492 int sockindex, in cyassl_send() argument [all …]
|
D | gtls.c | 260 int sockindex, in handshake() argument 265 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in handshake() 266 gnutls_session_t session = conn->ssl[sockindex].session; in handshake() 267 curl_socket_t sockfd = conn->sock[sockindex]; in handshake() 367 int sockindex) in gtls_connect_step1() argument 405 if(conn->ssl[sockindex].state == ssl_connection_complete) in gtls_connect_step1() 422 rc = gnutls_certificate_allocate_credentials(&conn->ssl[sockindex].cred); in gtls_connect_step1() 433 &conn->ssl[sockindex].srp_client_cred); in gtls_connect_step1() 440 rc = gnutls_srp_set_client_credentials(conn->ssl[sockindex]. in gtls_connect_step1() 454 gnutls_certificate_set_verify_flags(conn->ssl[sockindex].cred, in gtls_connect_step1() [all …]
|
D | gskit.c | 487 static void cancel_async_handshake(struct connectdata *conn, int sockindex) in cancel_async_handshake() argument 489 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in cancel_async_handshake() 492 if(QsoCancelOperation(conn->sock[sockindex], 0) > 0) in cancel_async_handshake() 517 static ssize_t gskit_send(struct connectdata *conn, int sockindex, in gskit_send() argument 525 gsk_secure_soc_write(conn->ssl[sockindex].handle, in gskit_send() 556 static CURLcode gskit_connect_step1(struct connectdata *conn, int sockindex) in gskit_connect_step1() argument 559 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in gskit_connect_step1() 664 result = set_numeric(data, connssl->handle, GSK_FD, conn->sock[sockindex]); in gskit_connect_step1() 750 static CURLcode gskit_connect_step2(struct connectdata *conn, int sockindex, in gskit_connect_step2() argument 754 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in gskit_connect_step2() [all …]
|
D | schannel.c | 73 static CURLcode verify_certificate(struct connectdata *conn, int sockindex); 93 schannel_connect_step1(struct connectdata *conn, int sockindex) in schannel_connect_step1() argument 97 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in schannel_connect_step1() 259 result = Curl_write_plain(conn, conn->sock[sockindex], outbuf.pvBuffer, in schannel_connect_step1() 282 schannel_connect_step2(struct connectdata *conn, int sockindex) in schannel_connect_step2() argument 287 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in schannel_connect_step2() 351 result = Curl_read_plain(conn->sock[sockindex], in schannel_connect_step2() 441 result = Curl_write_plain(conn, conn->sock[sockindex], in schannel_connect_step2() 516 return verify_certificate(conn, sockindex); in schannel_connect_step2() 523 schannel_connect_step3(struct connectdata *conn, int sockindex) in schannel_connect_step3() argument [all …]
|
D | cyassl.h | 28 CURLcode Curl_cyassl_connect(struct connectdata *conn, int sockindex); 30 int Curl_cyassl_shutdown(struct connectdata* conn, int sockindex); 33 void Curl_cyassl_close(struct connectdata *conn, int sockindex); 37 int Curl_cyassl_shutdown(struct connectdata *conn, int sockindex); 40 int sockindex,
|
D | vtls.c | 291 Curl_ssl_connect(struct connectdata *conn, int sockindex) in Curl_ssl_connect() argument 299 conn->ssl[sockindex].use = TRUE; in Curl_ssl_connect() 300 conn->ssl[sockindex].state = ssl_connection_negotiating; in Curl_ssl_connect() 302 result = curlssl_connect(conn, sockindex); in Curl_ssl_connect() 311 Curl_ssl_connect_nonblocking(struct connectdata *conn, int sockindex, in Curl_ssl_connect_nonblocking() argument 320 conn->ssl[sockindex].use = TRUE; in Curl_ssl_connect_nonblocking() 322 result = curlssl_connect_nonblocking(conn, sockindex, done); in Curl_ssl_connect_nonblocking() 325 result = curlssl_connect(conn, sockindex); in Curl_ssl_connect_nonblocking() 521 void Curl_ssl_close(struct connectdata *conn, int sockindex) in Curl_ssl_close() argument 523 DEBUGASSERT((sockindex <= 1) && (sockindex >= -1)); in Curl_ssl_close() [all …]
|
D | schannel.h | 80 CURLcode Curl_schannel_connect(struct connectdata *conn, int sockindex); 83 int sockindex, 86 bool Curl_schannel_data_pending(const struct connectdata *conn, int sockindex); 87 void Curl_schannel_close(struct connectdata *conn, int sockindex); 88 int Curl_schannel_shutdown(struct connectdata *conn, int sockindex);
|
D | gskit.h | 35 CURLcode Curl_gskit_connect(struct connectdata *conn, int sockindex); 37 int sockindex, bool *done); 38 void Curl_gskit_close(struct connectdata *conn, int sockindex); 39 int Curl_gskit_shutdown(struct connectdata *conn, int sockindex);
|
D | polarssl.h | 34 CURLcode Curl_polarssl_connect(struct connectdata *conn, int sockindex); 37 int sockindex, 41 void Curl_polarssl_close(struct connectdata *conn, int sockindex); 45 int Curl_polarssl_shutdown(struct connectdata *conn, int sockindex);
|
D | axtls.h | 32 CURLcode Curl_axtls_connect(struct connectdata *conn, int sockindex); 35 int sockindex, 39 void Curl_axtls_close(struct connectdata *conn, int sockindex); 43 int Curl_axtls_shutdown(struct connectdata *conn, int sockindex);
|
D | nss.c | 544 static CURLcode nss_load_key(struct connectdata *conn, int sockindex, in nss_load_key() argument 552 (void)sockindex; /* unused */ in nss_load_key() 591 static CURLcode cert_stuff(struct connectdata *conn, int sockindex, in cert_stuff() argument 598 result = nss_load_cert(&conn->ssl[sockindex], cert_file, PR_FALSE); in cert_stuff() 612 result = nss_load_key(conn, sockindex, key_file); in cert_stuff() 615 result = nss_load_key(conn, sockindex, cert_file); in cert_stuff() 1335 void Curl_nss_close(struct connectdata *conn, int sockindex) in Curl_nss_close() argument 1337 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in Curl_nss_close() 1342 fake_sclose(conn->sock[sockindex]); in Curl_nss_close() 1343 conn->sock[sockindex] = CURL_SOCKET_BAD; in Curl_nss_close() [all …]
|
D | darwinssl.h | 29 CURLcode Curl_darwinssl_connect(struct connectdata *conn, int sockindex); 32 int sockindex, 36 void Curl_darwinssl_close(struct connectdata *conn, int sockindex); 40 int Curl_darwinssl_shutdown(struct connectdata *conn, int sockindex);
|
D | gtls.h | 33 CURLcode Curl_gtls_connect(struct connectdata *conn, int sockindex); 35 int sockindex, 39 void Curl_gtls_close(struct connectdata *conn, int sockindex); 43 int Curl_gtls_shutdown(struct connectdata *conn, int sockindex);
|
D | darwinssl.c | 1001 int sockindex) argument 1004 curl_socket_t sockfd = conn->sock[sockindex]; 1005 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; 1815 darwinssl_connect_step2(struct connectdata *conn, int sockindex) argument 1818 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; 1847 return darwinssl_connect_step2(conn, sockindex); 1955 int sockindex) argument 1958 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; 2076 int sockindex, argument 2082 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; [all …]
|
D | openssl.h | 34 CURLcode Curl_ossl_connect(struct connectdata *conn, int sockindex); 36 int sockindex, 40 void Curl_ossl_close(struct connectdata *conn, int sockindex); 64 int Curl_ossl_shutdown(struct connectdata *conn, int sockindex);
|
D | vtls.h | 61 CURLcode Curl_ssl_connect(struct connectdata *conn, int sockindex); 63 int sockindex, 68 void Curl_ssl_close(struct connectdata *conn, int sockindex); 69 CURLcode Curl_ssl_shutdown(struct connectdata *conn, int sockindex);
|
D | nssg.h | 33 CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex); 35 int sockindex, 38 void Curl_nss_close(struct connectdata *conn, int sockindex);
|
D | openssl.c | 877 void Curl_ossl_close(struct connectdata *conn, int sockindex) in Curl_ossl_close() argument 879 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in Curl_ossl_close() 898 int Curl_ossl_shutdown(struct connectdata *conn, int sockindex) in Curl_ossl_shutdown() argument 901 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in Curl_ossl_shutdown() 922 int what = Curl_socket_ready(conn->sock[sockindex], in Curl_ossl_shutdown() 929 nread = (ssize_t)SSL_read(conn->ssl[sockindex].handle, buf, in Curl_ossl_shutdown() 931 err = SSL_get_error(conn->ssl[sockindex].handle, (int)nread); in Curl_ossl_shutdown() 1670 static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex) in ossl_connect_step1() argument 1678 curl_socket_t sockfd = conn->sock[sockindex]; in ossl_connect_step1() 1679 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in ossl_connect_step1() [all …]
|
/external/c-ares/ |
D | ares_getsock.c | 30 int sockindex=0; in ares_getsock() local 38 (i < channel->nservers) && (sockindex < ARES_GETSOCK_MAXNUM); in ares_getsock() 47 if(sockindex >= numsocks) in ares_getsock() 49 socks[sockindex] = server->udp_socket; in ares_getsock() 50 bitmap |= ARES_GETSOCK_READABLE(setbits, sockindex); in ares_getsock() 51 sockindex++; in ares_getsock() 59 if(sockindex >= numsocks) in ares_getsock() 61 socks[sockindex] = server->tcp_socket; in ares_getsock() 62 bitmap |= ARES_GETSOCK_READABLE(setbits, sockindex); in ares_getsock() 66 bitmap |= ARES_GETSOCK_WRITABLE(setbits, sockindex); in ares_getsock() [all …]
|
/external/curl/lib/ |
D | http_proxy.c | 91 int sockindex, in Curl_proxyCONNECT() argument 99 curl_socket_t tunnelsocket = conn->sock[sockindex]; in Curl_proxyCONNECT() 110 if(conn->tunnel_state[sockindex] == TUNNEL_COMPLETE) in Curl_proxyCONNECT() 116 if(TUNNEL_INIT == conn->tunnel_state[sockindex]) { in Curl_proxyCONNECT() 208 &data->info.request_size, 0, sockindex); in Curl_proxyCONNECT() 219 conn->tunnel_state[sockindex] = TUNNEL_CONNECT; in Curl_proxyCONNECT() 329 conn->tunnel_state[sockindex] = TUNNEL_COMPLETE; in Curl_proxyCONNECT() 424 conn->tunnel_state[sockindex] = TUNNEL_COMPLETE; in Curl_proxyCONNECT() 447 conn->tunnel_state[sockindex] = TUNNEL_COMPLETE; in Curl_proxyCONNECT() 529 Curl_closesocket(conn, conn->sock[sockindex]); in Curl_proxyCONNECT() [all …]
|
D | getinfo.c | 289 unsigned int sockindex = 0; in getinfo_slist() local 300 while((sockindex < sizeof(conn->ssl) / sizeof(conn->ssl[0])) && in getinfo_slist() 301 (!conn->ssl[sockindex].use)) in getinfo_slist() 302 sockindex++; in getinfo_slist() 304 if(sockindex == sizeof(conn->ssl) / sizeof(conn->ssl[0])) in getinfo_slist() 309 internals = conn->ssl[sockindex].ctx; in getinfo_slist() 312 internals = conn->ssl[sockindex].session; in getinfo_slist() 315 internals = conn->ssl[sockindex].handle; in getinfo_slist() 318 internals = conn->ssl[sockindex].handle; in getinfo_slist()
|
D | socks.h | 51 int sockindex, 63 int sockindex, 70 CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex,
|
D | connect.c | 540 int sockindex, in trynextip() argument 553 if(sockindex == FIRSTSOCKET) { in trynextip() 719 int sockindex, in Curl_is_connected() argument 730 DEBUGASSERT(sockindex >= FIRSTSOCKET && sockindex <= SECONDARYSOCKET); in Curl_is_connected() 734 if(conn->bits.tcpconnect[sockindex]) { in Curl_is_connected() 776 trynextip(conn, sockindex, 1); in Curl_is_connected() 784 conn->sock[sockindex] = conn->tempsock[i]; in Curl_is_connected() 795 result = Curl_connected_proxy(conn, sockindex); in Curl_is_connected() 799 conn->bits.tcpconnect[sockindex] = TRUE; in Curl_is_connected() 802 if(sockindex == FIRSTSOCKET) in Curl_is_connected() [all …]
|