Lines Matching refs:bio
16 BIO *bio; member
19 static int tst_bio_core_read_ex(OSSL_CORE_BIO *bio, char *data, size_t data_len, in tst_bio_core_read_ex() argument
22 return BIO_read_ex(bio->bio, data, data_len, bytes_read); in tst_bio_core_read_ex()
25 static int tst_bio_core_write_ex(OSSL_CORE_BIO *bio, const char *data, in tst_bio_core_write_ex() argument
28 return BIO_write_ex(bio->bio, data, data_len, written); in tst_bio_core_write_ex()
31 static int tst_bio_core_gets(OSSL_CORE_BIO *bio, char *buf, int size) in tst_bio_core_gets() argument
33 return BIO_gets(bio->bio, buf, size); in tst_bio_core_gets()
36 static int tst_bio_core_puts(OSSL_CORE_BIO *bio, const char *str) in tst_bio_core_puts() argument
38 return BIO_puts(bio->bio, str); in tst_bio_core_puts()
41 static long tst_bio_core_ctrl(OSSL_CORE_BIO *bio, int cmd, long num, void *ptr) in tst_bio_core_ctrl() argument
43 return BIO_ctrl(bio->bio, cmd, num, ptr); in tst_bio_core_ctrl()
46 static int tst_bio_core_up_ref(OSSL_CORE_BIO *bio) in tst_bio_core_up_ref() argument
48 return BIO_up_ref(bio->bio); in tst_bio_core_up_ref()
51 static int tst_bio_core_free(OSSL_CORE_BIO *bio) in tst_bio_core_free() argument
53 return BIO_free(bio->bio); in tst_bio_core_free()
76 corebio.bio = BIO_new(BIO_s_mem()); in test_bio_core()
77 if (!TEST_ptr(corebio.bio) in test_bio_core()
87 if (!TEST_int_gt(BIO_puts(corebio.bio, msg), 0) in test_bio_core()
105 BIO_free(corebio.bio); in test_bio_core()