Lines Matching refs:connssl
561 struct ssl_connect_data *connssl = cf->ctx; local
563 (struct mbed_ssl_backend_data *)connssl->backend;
575 const char *hostname = connssl->peer.hostname;
793 infof(data, "mbedTLS: Connecting to %s:%d", hostname, connssl->peer.port);
882 if(!Curl_ssl_getsessionid(cf, data, &connssl->peer,
916 if(mbedtls_ssl_set_hostname(&backend->ssl, connssl->peer.sni ?
917 connssl->peer.sni : connssl->peer.hostname)) {
926 if(connssl->alpn) {
930 for(i = 0; i < connssl->alpn->count; ++i) {
931 backend->protocols[i] = connssl->alpn->entries[i];
940 Curl_alpn_to_proto_str(&proto, connssl->alpn);
967 connssl->connecting_state = ssl_connect_2;
976 struct ssl_connect_data *connssl = cf->ctx; local
978 (struct mbed_ssl_backend_data *)connssl->backend;
992 connssl->io_need = CURL_SSL_IO_NEED_RECV;
996 connssl->io_need = CURL_SSL_IO_NEED_SEND;
1104 if(connssl->alpn) {
1107 Curl_alpn_set_negotiated(cf, data, connssl, (const unsigned char *)proto,
1112 connssl->connecting_state = ssl_connect_3;
1127 struct ssl_connect_data *connssl = cf->ctx; local
1129 (struct mbed_ssl_backend_data *)connssl->backend;
1162 result = Curl_ssl_set_sessionid(cf, data, &connssl->peer, NULL,
1180 struct ssl_connect_data *connssl = cf->ctx; local
1182 (struct mbed_ssl_backend_data *)connssl->backend;
1212 struct ssl_connect_data *connssl = cf->ctx; local
1214 (struct mbed_ssl_backend_data *)connssl->backend;
1227 connssl->io_need = CURL_SSL_IO_NEED_NONE;
1242 connssl->io_need = CURL_SSL_IO_NEED_RECV;
1245 connssl->io_need = CURL_SSL_IO_NEED_SEND;
1282 connssl->io_need = CURL_SSL_IO_NEED_RECV;
1286 connssl->io_need = CURL_SSL_IO_NEED_SEND;
1300 struct ssl_connect_data *connssl = cf->ctx; local
1302 (struct mbed_ssl_backend_data *)connssl->backend;
1328 struct ssl_connect_data *connssl = cf->ctx; local
1330 (struct mbed_ssl_backend_data *)connssl->backend;
1419 struct ssl_connect_data *connssl = cf->ctx; local
1425 if(ssl_connection_complete == connssl->state) {
1430 if(ssl_connect_1 == connssl->connecting_state) {
1444 while(ssl_connect_2 == connssl->connecting_state) {
1456 if(connssl->io_need) {
1457 curl_socket_t writefd = (connssl->io_need & CURL_SSL_IO_NEED_SEND) ?
1459 curl_socket_t readfd = (connssl->io_need & CURL_SSL_IO_NEED_RECV) ?
1490 connssl->io_need = CURL_SSL_IO_NEED_NONE;
1493 (nonblocking && (ssl_connect_2 == connssl->connecting_state)))
1498 if(ssl_connect_3 == connssl->connecting_state) {
1514 connssl->connecting_state = ssl_connect_done;
1517 if(ssl_connect_done == connssl->connecting_state) {
1518 connssl->state = ssl_connection_complete;
1525 connssl->connecting_state = ssl_connect_1;
1622 static void *mbedtls_get_internals(struct ssl_connect_data *connssl, argument
1626 (struct mbed_ssl_backend_data *)connssl->backend;