/openssl/test/ |
H A D | bio_meth_test.c | 17 BIO *membio = NULL, *bio1 = NULL, *bio2 = NULL, *bio3 = NULL; in test_bio_meth() local 26 || !TEST_ptr(bio1 = BIO_new(meth1)) in test_bio_meth() 33 BIO_set_next(bio2, bio1); in test_bio_meth() 34 BIO_set_next(bio1, membio); in test_bio_meth() 46 || !TEST_ptr_eq(BIO_find_type(bio3, id), bio1)) in test_bio_meth() 60 BIO_free(bio1); in test_bio_meth()
|
H A D | bio_dgram_test.c | 496 BIO *bio1 = NULL, *bio2 = NULL; in test_bio_dgram_pair() local 521 if (!TEST_ptr(bio1 = bio2 = BIO_new(BIO_s_dgram_mem()))) in test_bio_dgram_pair() 525 mtu1 = BIO_dgram_get_mtu(bio1); in test_bio_dgram_pair() 537 if (!TEST_true(BIO_set_write_buf_size(bio1, bufsz))) in test_bio_dgram_pair() 556 r = BIO_write(bio1, scratch + 4, blen); in test_bio_dgram_pair() 658 if (!TEST_false(BIO_sendmmsg(bio1, msgs, sizeof(BIO_MSG), in test_bio_dgram_pair() 669 if (!TEST_int_eq(BIO_dgram_get_effective_caps(bio1), ref_caps)) in test_bio_dgram_pair() 675 if (!TEST_int_eq(BIO_dgram_set_caps(bio1, ref_caps), 1)) in test_bio_dgram_pair() 712 if (!TEST_int_eq(BIO_dgram_set_local_addr_enable(bio1, 1), 1)) in test_bio_dgram_pair() 742 r = BIO_write(bio1, scratch, 64); in test_bio_dgram_pair() [all …]
|
H A D | threadstest.c | 1163 BIO *bio1 = NULL, *bio2 = NULL; in test_bio_dgram_pair() local 1165 r = BIO_new_bio_dgram_pair(&bio1, 0, &bio2, 0); in test_bio_dgram_pair() 1169 multi_bio1 = bio1; in test_bio_dgram_pair() 1177 BIO_free(bio1); in test_bio_dgram_pair()
|
H A D | quic_txp_test.c | 47 BIO *bio1, *bio2; member 107 BIO_free(h->bio1); in helper_cleanup() 130 if (!TEST_true(BIO_new_bio_dgram_pair(&h->bio1, 0, &h->bio2, 0))) in helper_init() 133 h->qtx_args.bio = h->bio1; in helper_init()
|
H A D | sslapitest.c | 2904 static void setupbio(BIO **res, BIO *bio1, BIO *bio2, int type) in setupbio() argument 2911 *res = bio1; in setupbio() 2934 BIO *bio1 = NULL; in test_ssl_set_bio() local 2984 if (!TEST_ptr(bio1 = BIO_new(BIO_s_mem()))) in test_ssl_set_bio() 2997 setupbio(&irbio, bio1, bio2, initrbio); in test_ssl_set_bio() 2998 setupbio(&iwbio, bio1, bio2, initwbio); in test_ssl_set_bio() 3018 setupbio(&nrbio, bio1, bio2, newrbio); in test_ssl_set_bio() 3019 setupbio(&nwbio, bio1, bio2, newwbio); in test_ssl_set_bio() 3040 BIO_free(bio1); in test_ssl_set_bio()
|
/openssl/crypto/bio/ |
H A D | bss_bio.c | 610 assert(bio1 != NULL); in bio_make_pair() 613 b1 = bio1->ptr; in bio_make_pair() 640 b2->peer = bio1; in bio_make_pair() 644 bio1->init = 1; in bio_make_pair() 682 BIO *bio1 = NULL, *bio2 = NULL; in BIO_new_bio_pair() local 686 bio1 = BIO_new(BIO_s_bio()); in BIO_new_bio_pair() 687 if (bio1 == NULL) in BIO_new_bio_pair() 704 r = BIO_make_bio_pair(bio1, bio2); in BIO_new_bio_pair() 711 BIO_free(bio1); in BIO_new_bio_pair() 712 bio1 = NULL; in BIO_new_bio_pair() [all …]
|
H A D | bss_dgram_pair.c | 341 if (bio1 == NULL || bio2 == NULL) { in dgram_pair_ctrl_make_bio_pair() 353 b1 = bio1->ptr; in dgram_pair_ctrl_make_bio_pair() 391 b2->peer = bio1; in dgram_pair_ctrl_make_bio_pair() 394 bio1->init = 1; in dgram_pair_ctrl_make_bio_pair() 406 bio1->init = 0; in dgram_pair_ctrl_destroy_bio_pair() 790 BIO *bio1 = NULL, *bio2 = NULL; in BIO_new_bio_dgram_pair() local 793 if (bio1 == NULL) in BIO_new_bio_dgram_pair() 812 r = BIO_make_bio_pair(bio1, bio2); in BIO_new_bio_dgram_pair() 819 BIO_free(bio1); in BIO_new_bio_dgram_pair() 820 bio1 = NULL; in BIO_new_bio_dgram_pair() [all …]
|
/openssl/doc/man3/ |
H A D | BIO_s_bio.pod | 23 int BIO_new_bio_pair(BIO **bio1, size_t writebuf1, BIO **bio2, size_t writebuf2); 74 BIO_set_write_buf_size() to create a connected pair of BIOs B<bio1>, B<bio2> 77 B<bio1> or B<bio2> do point to some other BIO, the values are overwritten, 131 B<bio1> and B<bio2>, or 0 on failure, with NULL pointers stored into the 132 locations for B<bio1> and B<bio2>. Check the error stack for more information.
|
H A D | BIO_s_dgram_pair.pod | 15 int BIO_new_bio_dgram_pair(BIO **bio1, size_t writebuf1, 48 pair of BIOs B<bio1>, B<bio2> with write buffer sizes B<writebuf1> and 194 B<bio1> and B<bio2>, or 0 on failure, with NULL pointers stored into the 195 locations for B<bio1> and B<bio2>. Check the error stack for more information.
|
/openssl/include/openssl/ |
H A D | bio.h.in | 894 int BIO_new_bio_pair(BIO **bio1, size_t writebuf1, 897 int BIO_new_bio_dgram_pair(BIO **bio1, size_t writebuf1, 902 * If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints. 903 * Otherwise returns 0 and sets *bio1 and *bio2 to NULL. Size 0 uses default
|