Lines Matching refs:cbio
120 * Use BIO_free_all() because bio_update_fn may prepend or append to cbio.
852 BIO *cbio;
865 cbio = BIO_new_connect(host /* optionally includes ":port" */);
866 if (cbio == NULL)
869 (void)BIO_set_conn_port(cbio, port);
872 return cbio;
922 BIO *cbio; /* == bio if supplied, used as connection BIO if rbio is NULL */
935 cbio = bio;
958 cbio = http_new_bio(server, port, use_ssl, proxy_host, proxy_port);
961 if (cbio == NULL)
970 if (rbio == NULL && BIO_do_connect_retry(cbio, overall_timeout, -1) <= 0) {
971 if (bio == NULL) /* cbio was not provided by caller */
972 BIO_free_all(cbio);
980 BIO *orig_bio = cbio;
982 cbio = (*bio_update_fn)(cbio, arg, 1 /* connect */, use_ssl != 0);
983 if (cbio == NULL) {
984 if (bio == NULL) /* cbio was not provided by caller */
990 rctx = http_req_ctx_new(bio == NULL, cbio, rbio != NULL ? rbio : cbio,