Searched refs:bio2 (Results 1 – 4 of 4) sorted by relevance
/external/boringssl/src/crypto/bio/ |
D | bio_test.cc | 232 BIO *bio1, *bio2; in TEST_P() local 233 ASSERT_TRUE(BIO_new_bio_pair(&bio1, 10, &bio2, 10)); in TEST_P() 234 bssl::UniquePtr<BIO> free_bio1(bio1), free_bio2(bio2); in TEST_P() 237 std::swap(bio1, bio2); in TEST_P() 248 ASSERT_EQ(5, BIO_read(bio2, buf, sizeof(buf))); in TEST_P() 257 ASSERT_EQ(10, BIO_read(bio2, buf, sizeof(buf))); in TEST_P() 262 EXPECT_EQ(-1, BIO_read(bio2, buf, 5)); in TEST_P() 263 EXPECT_TRUE(BIO_should_read(bio2)); in TEST_P() 267 EXPECT_EQ(-1, BIO_read(bio2, buf, 20)); in TEST_P() 268 EXPECT_TRUE(BIO_should_read(bio2)); in TEST_P() [all …]
|
D | pair.c | 305 static int bio_make_pair(BIO *bio1, BIO *bio2, size_t writebuf1_len, in bio_make_pair() argument 310 assert(bio2 != NULL); in bio_make_pair() 313 b2 = bio2->ptr; in bio_make_pair() 346 b1->peer = bio2; in bio_make_pair() 354 bio2->init = 1; in bio_make_pair() 464 BIO *bio2 = BIO_new(bio_s_bio()); in BIO_new_bio_pair() local 465 if (bio1 == NULL || bio2 == NULL || in BIO_new_bio_pair() 466 !bio_make_pair(bio1, bio2, writebuf1_len, writebuf2_len)) { in BIO_new_bio_pair() 468 BIO_free(bio2); in BIO_new_bio_pair() 475 *bio2_p = bio2; in BIO_new_bio_pair()
|
/external/boringssl/src/ssl/ |
D | ssl_test.cc | 1340 BIO *bio1, *bio2; in ConnectClientAndServer() local 1341 if (!BIO_new_bio_pair(&bio1, 0, &bio2, 0)) { in ConnectClientAndServer() 1346 SSL_set_bio(server.get(), bio2, bio2); in ConnectClientAndServer() 1618 bssl::UniquePtr<BIO> bio1(BIO_new(BIO_s_mem())), bio2(BIO_new(BIO_s_mem())), in TEST() local 1622 ASSERT_TRUE(bio2); in TEST() 1633 BIO_up_ref(bio2.get()); in TEST() 1635 SSL_set_bio(ssl.get(), bio2.get(), bio3.get()); in TEST() 1638 SSL_set_bio(ssl.get(), bio2.get(), bio3.get()); in TEST() 1642 SSL_set_bio(ssl.get(), bio2.get(), bio1.get()); in TEST() 1661 BIO_up_ref(bio2.get()); in TEST() [all …]
|
/external/ltp/testcases/kernel/device-drivers/tbio/tbio_kernel/ |
D | ltp_tbio.c | 353 send_request(q, &(bio_pairp->bio2), bdev, &inter, writing); in test_bio_split()
|