Lines Matching refs:rconn
198 struct rustls_connection *rconn = NULL; in cr_recv() local
206 rconn = backend->conn; in cr_recv()
219 rresult = rustls_connection_read(rconn, in cr_recv()
275 struct rustls_connection *rconn) in cr_flush_out() argument
286 while(rustls_connection_wants_write(rconn)) { in cr_flush_out()
287 io_error = rustls_connection_write_tls(rconn, write_cb, &io_ctx, in cr_flush_out()
327 struct rustls_connection *rconn = NULL; in cr_send() local
337 rconn = backend->conn; in cr_send()
338 DEBUGASSERT(rconn); in cr_send()
347 *err = cr_flush_out(cf, data, rconn); in cr_send()
364 rresult = rustls_connection_write(rconn, buf, blen, &plainwritten); in cr_send()
378 *err = cr_flush_out(cf, data, rconn); in cr_send()
533 struct rustls_connection *rconn = NULL; in cr_init_backend() local
549 rconn = backend->conn; in cr_init_backend()
754 DEBUGASSERT(rconn == NULL); in cr_init_backend()
756 connssl->peer.hostname, &rconn); in cr_init_backend()
762 DEBUGASSERT(rconn); in cr_init_backend()
763 rustls_connection_set_userdata(rconn, backend); in cr_init_backend()
764 backend->conn = rconn; in cr_init_backend()
770 const struct rustls_connection *rconn) in cr_set_negotiated_alpn() argument
776 rustls_connection_get_alpn_protocol(rconn, &protocol, &len); in cr_set_negotiated_alpn()
799 struct rustls_connection *rconn = NULL; in cr_connect_common() local
824 rconn = backend->conn; in cr_connect_common()
833 if(!rustls_connection_is_handshaking(rconn)) { in cr_connect_common()
838 cr_set_negotiated_alpn(cf, data, rconn); in cr_connect_common()
849 uint16_t proto = rustls_connection_get_protocol_version(rconn); in cr_connect_common()
850 uint16_t cipher = rustls_connection_get_negotiated_ciphersuite(rconn); in cr_connect_common()
867 wants_read = rustls_connection_wants_read(rconn); in cr_connect_common()
868 wants_write = rustls_connection_wants_write(rconn) || in cr_connect_common()