/external/curl/lib/vtls/ |
D | axtls.c | 138 static CURLcode connect_prep(struct connectdata *conn, int sockindex) in connect_prep() argument 154 if(conn->ssl[sockindex].state == ssl_connection_complete) in connect_prep() 182 conn->ssl[sockindex].ssl_ctx = ssl_ctx; in connect_prep() 183 conn->ssl[sockindex].ssl = NULL; in connect_prep() 268 ssl = ssl_client_new(ssl_ctx, conn->sock[sockindex], in connect_prep() 275 ssl = ssl_client_new(ssl_ctx, conn->sock[sockindex], NULL, 0); in connect_prep() 277 conn->ssl[sockindex].ssl = ssl; in connect_prep() 285 static CURLcode connect_finish(struct connectdata *conn, int sockindex) in connect_finish() argument 288 SSL *ssl = conn->ssl[sockindex].ssl; in connect_finish() 302 Curl_axtls_close(conn, sockindex); in connect_finish() [all …]
|
D | mbedtls.c | 159 int sockindex) in mbed_connect_step1() argument 162 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in mbed_connect_step1() 360 mbedtls_ssl_set_bio(&connssl->ssl, &conn->sock[sockindex], in mbed_connect_step1() 433 int sockindex) in mbed_connect_step2() argument 437 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in mbed_connect_step2() 447 conn->recv[sockindex] = mbed_recv; in mbed_connect_step2() 448 conn->send[sockindex] = mbed_send; in mbed_connect_step2() 470 mbedtls_ssl_get_ciphersuite(&conn->ssl[sockindex].ssl) in mbed_connect_step2() 473 ret = mbedtls_ssl_get_verify_result(&conn->ssl[sockindex].ssl); in mbed_connect_step2() 594 int sockindex) in mbed_connect_step3() argument [all …]
|
D | polarssl.c | 141 int sockindex) in polarssl_connect_step1() argument 144 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in polarssl_connect_step1() 335 net_recv, &conn->sock[sockindex], in polarssl_connect_step1() 336 net_send, &conn->sock[sockindex]); in polarssl_connect_step1() 404 int sockindex) in polarssl_connect_step2() argument 408 struct ssl_connect_data* connssl = &conn->ssl[sockindex]; in polarssl_connect_step2() 414 conn->recv[sockindex] = polarssl_recv; in polarssl_connect_step2() 415 conn->send[sockindex] = polarssl_send; in polarssl_connect_step2() 441 ssl_get_ciphersuite(&conn->ssl[sockindex].ssl) ); in polarssl_connect_step2() 443 ret = ssl_get_verify_result(&conn->ssl[sockindex].ssl); in polarssl_connect_step2() [all …]
|
D | cyassl.c | 134 int sockindex) in cyassl_connect_step1() argument 138 struct ssl_connect_data* conssl = &conn->ssl[sockindex]; in cyassl_connect_step1() 140 curl_socket_t sockfd = conn->sock[sockindex]; in cyassl_connect_step1() 412 int sockindex) in cyassl_connect_step2() argument 416 struct ssl_connect_data* conssl = &conn->ssl[sockindex]; in cyassl_connect_step2() 418 conn->recv[sockindex] = cyassl_recv; in cyassl_connect_step2() 419 conn->send[sockindex] = cyassl_send; in cyassl_connect_step2() 578 int sockindex) in cyassl_connect_step3() argument 582 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in cyassl_connect_step3() 622 int sockindex, in cyassl_send() argument [all …]
|
D | gtls.c | 261 int sockindex, in handshake() argument 266 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in handshake() 267 gnutls_session_t session = conn->ssl[sockindex].session; in handshake() 268 curl_socket_t sockfd = conn->sock[sockindex]; in handshake() 368 int sockindex) in gtls_connect_step1() argument 404 if(conn->ssl[sockindex].state == ssl_connection_complete) in gtls_connect_step1() 421 rc = gnutls_certificate_allocate_credentials(&conn->ssl[sockindex].cred); in gtls_connect_step1() 432 &conn->ssl[sockindex].srp_client_cred); in gtls_connect_step1() 439 rc = gnutls_srp_set_client_credentials(conn->ssl[sockindex]. in gtls_connect_step1() 453 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 | 85 static CURLcode verify_certificate(struct connectdata *conn, int sockindex); 105 schannel_connect_step1(struct connectdata *conn, int sockindex) in schannel_connect_step1() argument 109 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in schannel_connect_step1() 355 result = Curl_write_plain(conn, conn->sock[sockindex], outbuf.pvBuffer, in schannel_connect_step1() 378 schannel_connect_step2(struct connectdata *conn, int sockindex) in schannel_connect_step2() argument 383 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in schannel_connect_step2() 447 result = Curl_read_plain(conn->sock[sockindex], in schannel_connect_step2() 537 result = Curl_write_plain(conn, conn->sock[sockindex], in schannel_connect_step2() 612 return verify_certificate(conn, sockindex); in schannel_connect_step2() 619 schannel_connect_step3(struct connectdata *conn, int sockindex) in schannel_connect_step3() argument [all …]
|
D | mbedtls.h | 34 int Curl_mbedtls_data_pending(const struct connectdata *conn, int sockindex); 36 CURLcode Curl_mbedtls_connect(struct connectdata *conn, int sockindex); 39 int sockindex, 47 void Curl_mbedtls_close(struct connectdata *conn, int sockindex); 51 int Curl_mbedtls_shutdown(struct connectdata *conn, int sockindex);
|
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 | cyassl.h | 40 CURLcode Curl_cyassl_connect(struct connectdata *conn, int sockindex); 42 int Curl_cyassl_shutdown(struct connectdata* conn, int sockindex); 45 void Curl_cyassl_close(struct connectdata *conn, int sockindex); 49 int Curl_cyassl_shutdown(struct connectdata *conn, int sockindex); 52 int sockindex,
|
D | vtls.c | 302 Curl_ssl_connect(struct connectdata *conn, int sockindex) in Curl_ssl_connect() argument 310 conn->ssl[sockindex].use = TRUE; in Curl_ssl_connect() 311 conn->ssl[sockindex].state = ssl_connection_negotiating; in Curl_ssl_connect() 313 result = curlssl_connect(conn, sockindex); in Curl_ssl_connect() 322 Curl_ssl_connect_nonblocking(struct connectdata *conn, int sockindex, in Curl_ssl_connect_nonblocking() argument 331 conn->ssl[sockindex].use = TRUE; in Curl_ssl_connect_nonblocking() 333 result = curlssl_connect_nonblocking(conn, sockindex, done); in Curl_ssl_connect_nonblocking() 336 result = curlssl_connect(conn, sockindex); in Curl_ssl_connect_nonblocking() 561 void Curl_ssl_close(struct connectdata *conn, int sockindex) in Curl_ssl_close() argument 563 DEBUGASSERT((sockindex <= 1) && (sockindex >= -1)); in Curl_ssl_close() [all …]
|
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 | 36 CURLcode Curl_polarssl_connect(struct connectdata *conn, int sockindex); 39 int sockindex, 43 void Curl_polarssl_close(struct connectdata *conn, int sockindex); 47 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 | 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 | darwinssl.c | 1000 int sockindex) argument 1003 curl_socket_t sockfd = conn->sock[sockindex]; 1004 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; 1828 darwinssl_connect_step2(struct connectdata *conn, int sockindex) argument 1831 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; 1860 return darwinssl_connect_step2(conn, sockindex); 1968 int sockindex) argument 1971 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; 2089 int sockindex, argument 2095 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; [all …]
|
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 | nss.c | 550 static CURLcode nss_load_key(struct connectdata *conn, int sockindex, in nss_load_key() argument 558 (void)sockindex; /* unused */ in nss_load_key() 597 static CURLcode cert_stuff(struct connectdata *conn, int sockindex, in cert_stuff() argument 604 result = nss_load_cert(&conn->ssl[sockindex], cert_file, PR_FALSE); in cert_stuff() 618 result = nss_load_key(conn, sockindex, key_file); in cert_stuff() 621 result = nss_load_key(conn, sockindex, cert_file); in cert_stuff() 1334 void Curl_nss_close(struct connectdata *conn, int sockindex) in Curl_nss_close() argument 1336 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in Curl_nss_close() 1341 fake_sclose(conn->sock[sockindex]); in Curl_nss_close() 1342 conn->sock[sockindex] = CURL_SOCKET_BAD; in Curl_nss_close() [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 | 66 CURLcode Curl_ssl_connect(struct connectdata *conn, int sockindex); 68 int sockindex, 73 void Curl_ssl_close(struct connectdata *conn, int sockindex); 74 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);
|
/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 | 104 int sockindex, in Curl_proxyCONNECT() argument 113 curl_socket_t tunnelsocket = conn->sock[sockindex]; in Curl_proxyCONNECT() 124 if(conn->tunnel_state[sockindex] == TUNNEL_COMPLETE) in Curl_proxyCONNECT() 130 if(TUNNEL_INIT == conn->tunnel_state[sockindex]) { in Curl_proxyCONNECT() 221 &data->info.request_size, 0, sockindex); in Curl_proxyCONNECT() 232 conn->tunnel_state[sockindex] = TUNNEL_CONNECT; in Curl_proxyCONNECT() 344 conn->tunnel_state[sockindex] = TUNNEL_COMPLETE; in Curl_proxyCONNECT() 439 conn->tunnel_state[sockindex] = TUNNEL_COMPLETE; in Curl_proxyCONNECT() 462 conn->tunnel_state[sockindex] = TUNNEL_COMPLETE; in Curl_proxyCONNECT() 544 Curl_closesocket(conn, conn->sock[sockindex]); in Curl_proxyCONNECT() [all …]
|
D | socks.h | 51 int sockindex, 63 int sockindex, 70 CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex,
|
D | connect.c | 541 int sockindex, in trynextip() argument 554 if(sockindex == FIRSTSOCKET) { in trynextip() 720 int sockindex, in Curl_is_connected() argument 731 DEBUGASSERT(sockindex >= FIRSTSOCKET && sockindex <= SECONDARYSOCKET); in Curl_is_connected() 735 if(conn->bits.tcpconnect[sockindex]) { in Curl_is_connected() 778 trynextip(conn, sockindex, 1); in Curl_is_connected() 786 conn->sock[sockindex] = conn->tempsock[i]; in Curl_is_connected() 797 result = Curl_connected_proxy(conn, sockindex); in Curl_is_connected() 801 conn->bits.tcpconnect[sockindex] = TRUE; in Curl_is_connected() 804 if(sockindex == FIRSTSOCKET) in Curl_is_connected() [all …]
|