Lines Matching defs:bio
79 #include <openssl/bio.h>
673 static int ossl_bio_cf_create(BIO *bio)
675 BIO_set_shutdown(bio, 1);
676 BIO_set_init(bio, 1);
678 bio->num = -1;
680 BIO_set_data(bio, NULL);
684 static int ossl_bio_cf_destroy(BIO *bio)
686 if(!bio)
691 static long ossl_bio_cf_ctrl(BIO *bio, int cmd, long num, void *ptr)
693 struct Curl_cfilter *cf = BIO_get_data(bio);
700 ret = (long)BIO_get_shutdown(bio);
703 BIO_set_shutdown(bio, (int)num);
725 static int ossl_bio_cf_out_write(BIO *bio, const char *buf, int blen)
727 struct Curl_cfilter *cf = BIO_get_data(bio);
739 BIO_clear_retry_flags(bio);
743 BIO_set_retry_write(bio);
748 static int ossl_bio_cf_in_read(BIO *bio, char *buf, int blen)
750 struct Curl_cfilter *cf = BIO_get_data(bio);
766 BIO_clear_retry_flags(bio);
770 BIO_set_retry_read(bio);
3467 BIO *bio;
3826 bio = BIO_new(backend->bio_method);
3827 if(!bio)
3830 BIO_set_data(bio, cf);
3837 BIO_up_ref(bio);
3838 SSL_set0_rbio(backend->handle, bio);
3839 SSL_set0_wbio(backend->handle, bio);
3841 SSL_set_bio(backend->handle, bio, bio);