Lines Matching refs:cf

74 cr_data_pending(struct Curl_cfilter *cf, const struct Curl_easy *data)  in cr_data_pending()  argument
76 struct ssl_connect_data *ctx = cf->ctx; in cr_data_pending()
86 struct Curl_cfilter *cf; member
94 struct ssl_connect_data *const connssl = io_ctx->cf->ctx; in read_cb()
97 ssize_t nread = Curl_conn_cf_recv(io_ctx->cf->next, io_ctx->data, in read_cb()
109 CURL_TRC_CF(io_ctx->data, io_ctx->cf, "cf->next recv(len=%zu) -> %zd, %d", in read_cb()
120 ssize_t nwritten = Curl_conn_cf_send(io_ctx->cf->next, io_ctx->data, in write_cb()
131 CURL_TRC_CF(io_ctx->data, io_ctx->cf, "cf->next send(len=%zu) -> %zd, %d", in write_cb()
136 static ssize_t tls_recv_more(struct Curl_cfilter *cf, in tls_recv_more() argument
139 struct ssl_connect_data *const connssl = cf->ctx; in tls_recv_more()
147 io_ctx.cf = cf; in tls_recv_more()
192 cr_recv(struct Curl_cfilter *cf, struct Curl_easy *data, in cr_recv() argument
195 struct ssl_connect_data *const connssl = cf->ctx; in cr_recv()
210 if(tls_recv_more(cf, data, err) < 0) { in cr_recv()
269 CURL_TRC_CF(data, cf, "cf_recv(len=%zu) -> %zd, %d", in cr_recv()
274 static CURLcode cr_flush_out(struct Curl_cfilter *cf, struct Curl_easy *data, in cr_flush_out() argument
283 io_ctx.cf = cf; in cr_flush_out()
290 CURL_TRC_CF(data, cf, "cf_send: EAGAIN after %zu bytes", in cr_flush_out()
304 CURL_TRC_CF(data, cf, "cf_send: wrote %zu TLS bytes", tlswritten); in cr_flush_out()
321 cr_send(struct Curl_cfilter *cf, struct Curl_easy *data, in cr_send() argument
324 struct ssl_connect_data *const connssl = cf->ctx; in cr_send()
340 CURL_TRC_CF(data, cf, "cf_send(len=%zu)", plainlen); in cr_send()
347 *err = cr_flush_out(cf, data, rconn); in cr_send()
348 CURL_TRC_CF(data, cf, "cf_send: flushing %zu previously added bytes -> %d", in cr_send()
363 CURL_TRC_CF(data, cf, "cf_send: adding %zu plain bytes to Rustls", blen); in cr_send()
378 *err = cr_flush_out(cf, data, rconn); in cr_send()
383 CURL_TRC_CF(data, cf, "cf_send: EAGAIN, remember we added %zu plain" in cr_send()
396 CURL_TRC_CF(data, cf, "cf_send(len=%zu) -> %d, %zd", in cr_send()
526 cr_init_backend(struct Curl_cfilter *cf, struct Curl_easy *data, in cr_init_backend() argument
529 struct ssl_connect_data *connssl = cf->ctx; in cr_init_backend()
530 struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf); in cr_init_backend()
769 cr_set_negotiated_alpn(struct Curl_cfilter *cf, struct Curl_easy *data, in cr_set_negotiated_alpn() argument
772 struct ssl_connect_data *const connssl = cf->ctx; in cr_set_negotiated_alpn()
777 Curl_alpn_set_negotiated(cf, data, connssl, protocol, len); in cr_set_negotiated_alpn()
790 cr_connect_common(struct Curl_cfilter *cf, in cr_connect_common() argument
795 struct ssl_connect_data *const connssl = cf->ctx; in cr_connect_common()
796 curl_socket_t sockfd = Curl_conn_cf_get_socket(cf, data); in cr_connect_common()
812 CURL_TRC_CF(data, cf, "cr_connect_common, state=%d", connssl->state); in cr_connect_common()
815 result = cr_init_backend(cf, data, in cr_connect_common()
817 CURL_TRC_CF(data, cf, "cr_connect_common, init backend -> %d", result); in cr_connect_common()
838 cr_set_negotiated_alpn(cf, data, rconn); in cr_connect_common()
839 cr_send(cf, data, NULL, 0, &tmperr); in cr_connect_common()
898 CURL_TRC_CF(data, cf, "Curl_socket_check: %s would block", in cr_connect_common()
910 CURL_TRC_CF(data, cf, "rustls_connection wants us to write_tls."); in cr_connect_common()
911 cr_send(cf, data, NULL, 0, &tmperr); in cr_connect_common()
913 CURL_TRC_CF(data, cf, "writing would block"); in cr_connect_common()
922 CURL_TRC_CF(data, cf, "rustls_connection wants us to read_tls."); in cr_connect_common()
923 if(tls_recv_more(cf, data, &tmperr) < 0) { in cr_connect_common()
925 CURL_TRC_CF(data, cf, "reading would block"); in cr_connect_common()
944 cr_connect_nonblocking(struct Curl_cfilter *cf, in cr_connect_nonblocking() argument
947 return cr_connect_common(cf, data, false, done); in cr_connect_nonblocking()
951 cr_connect_blocking(struct Curl_cfilter *cf, struct Curl_easy *data) in cr_connect_blocking() argument
954 return cr_connect_common(cf, data, true, &done); in cr_connect_blocking()
968 cr_shutdown(struct Curl_cfilter *cf, in cr_shutdown() argument
972 struct ssl_connect_data *connssl = cf->ctx; in cr_shutdown()
981 if(!backend->conn || cf->shutdown) { in cr_shutdown()
997 nwritten = cr_send(cf, data, NULL, 0, &result); in cr_shutdown()
1005 CURL_TRC_CF(data, cf, "shutdown send failed: %d", result); in cr_shutdown()
1010 nread = cr_recv(cf, data, buf, (int)sizeof(buf), &result); in cr_shutdown()
1028 CURL_TRC_CF(data, cf, "shutdown, error: %d", result); in cr_shutdown()
1032 cf->shutdown = (result || *done); in cr_shutdown()
1037 cr_close(struct Curl_cfilter *cf, struct Curl_easy *data) in cr_close() argument
1039 struct ssl_connect_data *connssl = cf->ctx; in cr_close()