Lines Matching refs:bio
699 static int ossl_bio_cf_create(BIO *bio) in ossl_bio_cf_create() argument
701 BIO_set_shutdown(bio, 1); in ossl_bio_cf_create()
702 BIO_set_init(bio, 1); in ossl_bio_cf_create()
704 bio->num = -1; in ossl_bio_cf_create()
706 BIO_set_data(bio, NULL); in ossl_bio_cf_create()
710 static int ossl_bio_cf_destroy(BIO *bio) in ossl_bio_cf_destroy() argument
712 if(!bio) in ossl_bio_cf_destroy()
717 static long ossl_bio_cf_ctrl(BIO *bio, int cmd, long num, void *ptr) in ossl_bio_cf_ctrl() argument
719 struct Curl_cfilter *cf = BIO_get_data(bio); in ossl_bio_cf_ctrl()
726 ret = (long)BIO_get_shutdown(bio); in ossl_bio_cf_ctrl()
729 BIO_set_shutdown(bio, (int)num); in ossl_bio_cf_ctrl()
751 static int ossl_bio_cf_out_write(BIO *bio, const char *buf, int blen) in ossl_bio_cf_out_write() argument
753 struct Curl_cfilter *cf = BIO_get_data(bio); in ossl_bio_cf_out_write()
768 BIO_clear_retry_flags(bio); in ossl_bio_cf_out_write()
772 BIO_set_retry_write(bio); in ossl_bio_cf_out_write()
777 static int ossl_bio_cf_in_read(BIO *bio, char *buf, int blen) in ossl_bio_cf_in_read() argument
779 struct Curl_cfilter *cf = BIO_get_data(bio); in ossl_bio_cf_in_read()
796 BIO_clear_retry_flags(bio); in ossl_bio_cf_in_read()
800 BIO_set_retry_read(bio); in ossl_bio_cf_in_read()
4013 BIO *bio; in ossl_connect_step1() local
4038 bio = BIO_new(octx->bio_method); in ossl_connect_step1()
4039 if(!bio) in ossl_connect_step1()
4042 BIO_set_data(bio, cf); in ossl_connect_step1()
4049 BIO_up_ref(bio); in ossl_connect_step1()
4050 SSL_set0_rbio(octx->ssl, bio); in ossl_connect_step1()
4051 SSL_set0_wbio(octx->ssl, bio); in ossl_connect_step1()
4053 SSL_set_bio(octx->ssl, bio, bio); in ossl_connect_step1()