Lines Matching refs:bio

254 static int wolfssl_bio_cf_create(WOLFSSL_BIO *bio)  in wolfssl_bio_cf_create()  argument
257 wolfSSL_BIO_set_shutdown(bio, 1); in wolfssl_bio_cf_create()
259 wolfSSL_BIO_set_data(bio, NULL); in wolfssl_bio_cf_create()
263 static int wolfssl_bio_cf_destroy(WOLFSSL_BIO *bio) in wolfssl_bio_cf_destroy() argument
265 if(!bio) in wolfssl_bio_cf_destroy()
270 static long wolfssl_bio_cf_ctrl(WOLFSSL_BIO *bio, int cmd, long num, void *ptr) in wolfssl_bio_cf_ctrl() argument
272 struct Curl_cfilter *cf = wolfSSL_BIO_get_data(bio); in wolfssl_bio_cf_ctrl()
281 ret = (long)wolfSSL_BIO_get_shutdown(bio); in wolfssl_bio_cf_ctrl()
288 wolfSSL_BIO_set_shutdown(bio, (int)num); in wolfssl_bio_cf_ctrl()
311 static int wolfssl_bio_cf_out_write(WOLFSSL_BIO *bio, in wolfssl_bio_cf_out_write() argument
314 struct Curl_cfilter *cf = wolfSSL_BIO_get_data(bio); in wolfssl_bio_cf_out_write()
338 wolfSSL_BIO_clear_retry_flags(bio); in wolfssl_bio_cf_out_write()
341 wolfSSL_BIO_set_retry_write(bio); in wolfssl_bio_cf_out_write()
350 static int wolfssl_bio_cf_in_read(WOLFSSL_BIO *bio, char *buf, int blen) in wolfssl_bio_cf_in_read() argument
352 struct Curl_cfilter *cf = wolfSSL_BIO_get_data(bio); in wolfssl_bio_cf_in_read()
369 wolfSSL_BIO_clear_retry_flags(bio); in wolfssl_bio_cf_in_read()
372 wolfSSL_BIO_set_retry_read(bio); in wolfssl_bio_cf_in_read()
1279 WOLFSSL_BIO *bio; in wolfssl_connect_step1() local
1281 bio = wolfSSL_BIO_new(wolfssl_bio_cf_method); in wolfssl_connect_step1()
1282 if(!bio) in wolfssl_connect_step1()
1285 wolfSSL_BIO_set_data(bio, cf); in wolfssl_connect_step1()
1286 wolfSSL_set_bio(backend->handle, bio, bio); in wolfssl_connect_step1()