Lines Matching refs:cf
187 struct Curl_cfilter *cf = bio; in mbedtls_bio_cf_write() local
188 struct Curl_easy *data = CF_DATA_CURRENT(cf); in mbedtls_bio_cf_write()
196 nwritten = Curl_conn_cf_send(cf->next, data, (char *)buf, blen, FALSE, in mbedtls_bio_cf_write()
198 CURL_TRC_CF(data, cf, "mbedtls_bio_cf_out_write(len=%zu) -> %zd, err=%d", in mbedtls_bio_cf_write()
208 struct Curl_cfilter *cf = bio; in mbedtls_bio_cf_read() local
209 struct Curl_easy *data = CF_DATA_CURRENT(cf); in mbedtls_bio_cf_read()
220 nread = Curl_conn_cf_recv(cf->next, data, (char *)buf, blen, &result); in mbedtls_bio_cf_read()
221 CURL_TRC_CF(data, cf, "mbedtls_bio_cf_in_read(len=%zu) -> %zd, err=%d", in mbedtls_bio_cf_read()
529 struct Curl_cfilter *cf = (struct Curl_cfilter *) ptr; in mbed_verify_cb() local
530 struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf); in mbed_verify_cb()
531 struct Curl_easy *data = CF_DATA_CURRENT(cf); in mbed_verify_cb()
559 mbed_connect_step1(struct Curl_cfilter *cf, struct Curl_easy *data) argument
561 struct ssl_connect_data *connssl = cf->ctx;
564 struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf);
566 struct ssl_config_data *ssl_config = Curl_ssl_cf_get_config(cf, data);
814 mbedtls_ssl_conf_verify(&backend->config, mbed_verify_cb, cf);
839 mbedtls_ssl_set_bio(&backend->ssl, cf,
882 if(!Curl_ssl_getsessionid(cf, data, &connssl->peer,
973 mbed_connect_step2(struct Curl_cfilter *cf, struct Curl_easy *data) argument
976 struct ssl_connect_data *connssl = cf->ctx;
980 const char * const pinnedpubkey = Curl_ssl_cf_is_proxy(cf) ?
1006 CURL_TRC_CF(data, cf, "TLS version %04X",
1107 Curl_alpn_set_negotiated(cf, data, connssl, (const unsigned char *)proto,
1125 mbed_new_session(struct Curl_cfilter *cf, struct Curl_easy *data) argument
1127 struct ssl_connect_data *connssl = cf->ctx;
1130 struct ssl_config_data *ssl_config = Curl_ssl_cf_get_config(cf, data);
1162 result = Curl_ssl_set_sessionid(cf, data, &connssl->peer, NULL,
1176 static ssize_t mbed_send(struct Curl_cfilter *cf, struct Curl_easy *data, argument
1180 struct ssl_connect_data *connssl = cf->ctx;
1190 CURL_TRC_CF(data, cf, "mbedtls_ssl_write(len=%zu) -> -0x%04X",
1208 static CURLcode mbedtls_shutdown(struct Curl_cfilter *cf, argument
1212 struct ssl_connect_data *connssl = cf->ctx;
1222 if(!backend->initialized || cf->shutdown) {
1248 CURL_TRC_CF(data, cf, "mbedtls_shutdown error -0x%04X", -ret);
1273 CURL_TRC_CF(data, cf, "mbedtls_shutdown, still getting data");
1277 CURL_TRC_CF(data, cf, "mbedtls_shutdown done");
1281 CURL_TRC_CF(data, cf, "mbedtls_shutdown, need RECV");
1285 CURL_TRC_CF(data, cf, "mbedtls_shutdown, need SEND");
1289 CURL_TRC_CF(data, cf, "mbedtls_shutdown error -0x%04X", -ret);
1294 cf->shutdown = (result || *done);
1298 static void mbedtls_close(struct Curl_cfilter *cf, struct Curl_easy *data) argument
1300 struct ssl_connect_data *connssl = cf->ctx;
1324 static ssize_t mbed_recv(struct Curl_cfilter *cf, struct Curl_easy *data, argument
1328 struct ssl_connect_data *connssl = cf->ctx;
1339 CURL_TRC_CF(data, cf, "mbedtls_ssl_read(len=%zu) -> -0x%04X",
1344 mbed_new_session(cf, data);
1414 mbed_connect_common(struct Curl_cfilter *cf, struct Curl_easy *data, argument
1419 struct ssl_connect_data *connssl = cf->ctx;
1420 curl_socket_t sockfd = Curl_conn_cf_get_socket(cf, data);
1439 retcode = mbed_connect_step1(cf, data);
1491 retcode = mbed_connect_step2(cf, data);
1501 struct ssl_connect_data *ctx = cf->ctx;
1510 retcode = mbed_new_session(cf, data);
1530 static CURLcode mbedtls_connect_nonblocking(struct Curl_cfilter *cf, argument
1534 return mbed_connect_common(cf, data, TRUE, done);
1538 static CURLcode mbedtls_connect(struct Curl_cfilter *cf, argument
1544 retcode = mbed_connect_common(cf, data, FALSE, &done);
1589 static bool mbedtls_data_pending(struct Curl_cfilter *cf, argument
1592 struct ssl_connect_data *ctx = cf->ctx;