Lines Matching refs:connssl
535 struct ssl_connect_data *connssl = cf->ctx; in bearssl_connect_step1() local
537 (struct bearssl_ssl_backend_data *)connssl->backend; in bearssl_connect_step1()
544 const char *hostname = connssl->peer.hostname; in bearssl_connect_step1()
618 if(!Curl_ssl_getsessionid(cf, data, &connssl->peer, &sdata, &slen, NULL) && in bearssl_connect_step1()
628 if(connssl->alpn) { in bearssl_connect_step1()
632 for(i = 0; i < connssl->alpn->count; ++i) { in bearssl_connect_step1()
633 backend->protocols[i] = connssl->alpn->entries[i]; in bearssl_connect_step1()
636 connssl->alpn->count); in bearssl_connect_step1()
637 Curl_alpn_to_proto_str(&proto, connssl->alpn); in bearssl_connect_step1()
641 if(connssl->peer.type != CURL_SSL_PEER_DNS) { in bearssl_connect_step1()
650 if(!connssl->peer.sni) { in bearssl_connect_step1()
654 hostname = connssl->peer.sni; in bearssl_connect_step1()
674 connssl->connecting_state = ssl_connect_2; in bearssl_connect_step1()
683 struct ssl_connect_data *connssl = cf->ctx; in bearssl_run_until() local
685 (struct bearssl_ssl_backend_data *)connssl->backend; in bearssl_run_until()
695 connssl->io_need = CURL_SSL_IO_NEED_NONE; in bearssl_run_until()
703 if(connssl->state != ssl_connection_complete) { in bearssl_run_until()
737 connssl->io_need |= CURL_SSL_IO_NEED_SEND; in bearssl_run_until()
752 connssl->io_need |= CURL_SSL_IO_NEED_RECV; in bearssl_run_until()
763 struct ssl_connect_data *connssl = cf->ctx; in bearssl_connect_step2() local
765 (struct bearssl_ssl_backend_data *)connssl->backend; in bearssl_connect_step2()
784 connssl->connecting_state = ssl_connect_3; in bearssl_connect_step2()
816 struct ssl_connect_data *connssl = cf->ctx; in bearssl_connect_step3() local
818 (struct bearssl_ssl_backend_data *)connssl->backend; in bearssl_connect_step3()
822 DEBUGASSERT(ssl_connect_3 == connssl->connecting_state); in bearssl_connect_step3()
826 if(connssl->alpn) { in bearssl_connect_step3()
830 Curl_alpn_set_negotiated(cf, data, connssl, (const unsigned char *)proto, in bearssl_connect_step3()
842 ret = Curl_ssl_set_sessionid(cf, data, &connssl->peer, NULL, in bearssl_connect_step3()
850 connssl->connecting_state = ssl_connect_done; in bearssl_connect_step3()
858 struct ssl_connect_data *connssl = cf->ctx; in bearssl_send() local
860 (struct bearssl_ssl_backend_data *)connssl->backend; in bearssl_send()
893 struct ssl_connect_data *connssl = cf->ctx; in bearssl_recv() local
895 (struct bearssl_ssl_backend_data *)connssl->backend; in bearssl_recv()
921 struct ssl_connect_data *connssl = cf->ctx; in bearssl_connect_common() local
928 if(ssl_connection_complete == connssl->state) { in bearssl_connect_common()
934 if(ssl_connect_1 == connssl->connecting_state) { in bearssl_connect_common()
940 while(ssl_connect_2 == connssl->connecting_state) { in bearssl_connect_common()
951 if(connssl->io_need) { in bearssl_connect_common()
952 curl_socket_t writefd = (connssl->io_need & CURL_SSL_IO_NEED_SEND) ? in bearssl_connect_common()
954 curl_socket_t readfd = (connssl->io_need & CURL_SSL_IO_NEED_RECV) ? in bearssl_connect_common()
986 connssl->io_need = CURL_SSL_IO_NEED_NONE; in bearssl_connect_common()
988 if(ret || (nonblocking && (ssl_connect_2 == connssl->connecting_state))) in bearssl_connect_common()
992 if(ssl_connect_3 == connssl->connecting_state) { in bearssl_connect_common()
998 if(ssl_connect_done == connssl->connecting_state) { in bearssl_connect_common()
999 connssl->state = ssl_connection_complete; in bearssl_connect_common()
1006 connssl->connecting_state = ssl_connect_1; in bearssl_connect_common()
1070 static void *bearssl_get_internals(struct ssl_connect_data *connssl, in bearssl_get_internals() argument
1074 (struct bearssl_ssl_backend_data *)connssl->backend; in bearssl_get_internals()
1083 struct ssl_connect_data *connssl = cf->ctx; in bearssl_shutdown() local
1085 (struct bearssl_ssl_backend_data *)connssl->backend; in bearssl_shutdown()
1106 CURL_TRC_CF(data, cf, "shutdown EAGAIN, io_need=%x", connssl->io_need); in bearssl_shutdown()
1118 struct ssl_connect_data *connssl = cf->ctx; in bearssl_close() local
1120 (struct bearssl_ssl_backend_data *)connssl->backend; in bearssl_close()