Lines Matching refs:bio
106 ScopedBIO bio(BIO_new_connect(hostname)); in TestSocketConnect() local
107 if (!bio) { in TestSocketConnect()
112 if (BIO_write(bio.get(), kTestMessage, sizeof(kTestMessage)) != in TestSocketConnect()
141 static size_t BioReadZeroCopyWrapper(BIO *bio, uint8_t *data, size_t len) { in BioReadZeroCopyWrapper() argument
148 if (!BIO_zero_copy_get_read_buf(bio, &read_buf, &read_buf_offset, in BioReadZeroCopyWrapper()
156 BIO_zero_copy_get_read_buf_done(bio, available_bytes); in BioReadZeroCopyWrapper()
166 static size_t BioWriteZeroCopyWrapper(BIO *bio, const uint8_t *data, in BioWriteZeroCopyWrapper() argument
174 if (!BIO_zero_copy_get_write_buf(bio, &write_buf, &write_buf_offset, in BioWriteZeroCopyWrapper()
182 BIO_zero_copy_get_write_buf_done(bio, available_bytes); in BioWriteZeroCopyWrapper()
290 ScopedBIO bio(BIO_new(BIO_s_mem())); in TestPrintf() local
291 if (!bio) { in TestPrintf()
305 int ret = BIO_printf(bio.get(), "test %s", string); in TestPrintf()
312 if (!BIO_mem_contents(bio.get(), &contents, &len)) { in TestPrintf()
323 if (!BIO_reset(bio.get())) { in TestPrintf()
334 ScopedBIO bio(BIO_new_mem_buf(const_cast<uint8_t*>(data), data_len)); in ReadASN1() local
338 int ok = BIO_read_asn1(bio.get(), &out, &out_len, max_len); in ReadASN1()