| /freebsd/crypto/openssl/test/ |
| H A D | bio_memleak_test.c | 109 BIO *bio, *bio2 = NULL; in test_bio_rdonly_mem_buf() local 124 bio2 = BIO_new(BIO_s_mem()); in test_bio_rdonly_mem_buf() 125 if (!TEST_ptr(bio2)) in test_bio_rdonly_mem_buf() 127 BIO_set_mem_buf(bio2, bufmem, BIO_CLOSE); in test_bio_rdonly_mem_buf() 128 BIO_set_flags(bio2, BIO_FLAGS_MEM_RDONLY); in test_bio_rdonly_mem_buf() 130 if (!TEST_int_eq(BIO_read(bio2, data, 16), 7)) in test_bio_rdonly_mem_buf() 134 if (!TEST_int_gt(BIO_reset(bio2), 0)) in test_bio_rdonly_mem_buf() 136 if (!TEST_int_eq(BIO_read(bio2, data, 16), 7)) in test_bio_rdonly_mem_buf() 144 BIO_free(bio2); in test_bio_rdonly_mem_buf()
|
| H A D | bio_meth_test.c | 17 BIO *membio = NULL, *bio1 = NULL, *bio2 = NULL, *bio3 = NULL; in test_bio_meth() local 27 || !TEST_ptr(bio2 = BIO_new(meth2)) in test_bio_meth() 32 BIO_set_next(bio3, bio2); in test_bio_meth() 33 BIO_set_next(bio2, bio1); in test_bio_meth() 59 BIO_free(bio2); in test_bio_meth()
|
| H A D | bio_dgram_test.c | 496 BIO *bio1 = NULL, *bio2 = NULL; in test_bio_dgram_pair() local 518 if (!TEST_int_eq(BIO_new_bio_dgram_pair(&bio1, 0, &bio2, 0), 1)) in test_bio_dgram_pair() 521 if (!TEST_ptr(bio1 = bio2 = BIO_new(BIO_s_dgram_mem()))) in test_bio_dgram_pair() 541 mtu2 = BIO_dgram_get_mtu(bio2); in test_bio_dgram_pair() 589 r = BIO_read(bio2, scratch2, sizeof(scratch2)); in test_bio_dgram_pair() 598 if (!TEST_int_eq(BIO_read(bio2, scratch2, sizeof(scratch2)), -1)) in test_bio_dgram_pair() 619 if (!TEST_true(BIO_recvmmsg(bio2, rmsgs, sizeof(BIO_MSG), OSSL_NELEM(rmsgs), 0, in test_bio_dgram_pair() 665 if (!TEST_int_eq(BIO_dgram_set_caps(bio2, ref_caps), 1)) in test_bio_dgram_pair() 668 if (!TEST_int_eq(BIO_dgram_get_caps(bio2), ref_caps)) in test_bio_dgram_pair() 674 if (idx == 0 && !TEST_int_eq(BIO_dgram_get_effective_caps(bio2), 0)) in test_bio_dgram_pair() [all …]
|
| H A D | threadstest.c | 1240 BIO *bio1 = NULL, *bio2 = NULL; in test_bio_dgram_pair() local 1242 r = BIO_new_bio_dgram_pair(&bio1, 0, &bio2, 0); in test_bio_dgram_pair() 1247 multi_bio2 = bio2; in test_bio_dgram_pair() 1255 BIO_free(bio2); in test_bio_dgram_pair()
|
| H A D | quic_txp_test.c | 47 BIO *bio1, *bio2; member 108 BIO_free(h->bio2); in helper_cleanup() 130 if (!TEST_true(BIO_new_bio_dgram_pair(&h->bio1, 0, &h->bio2, 0))) in helper_init() 222 if (!TEST_ptr(h->demux = ossl_quic_demux_new(h->bio2, 8, in helper_init()
|
| H A D | sslapitest.c | 3049 static void setupbio(BIO **res, BIO *bio1, BIO *bio2, int type) in setupbio() argument 3059 *res = bio2; in setupbio() 3079 BIO *bio2 = NULL; in test_ssl_set_bio() local 3136 if (!TEST_ptr(bio2 = BIO_new(BIO_s_mem()))) in test_ssl_set_bio() 3141 setupbio(&irbio, bio1, bio2, initrbio); in test_ssl_set_bio() 3142 setupbio(&iwbio, bio1, bio2, initwbio); in test_ssl_set_bio() 3164 setupbio(&nrbio, bio1, bio2, newrbio); in test_ssl_set_bio() 3165 setupbio(&nwbio, bio1, bio2, newwbio); in test_ssl_set_bio() 3193 BIO_free(bio2); in test_ssl_set_bio()
|
| /freebsd/crypto/openssl/crypto/bio/ |
| H A D | bss_bio.c | 35 static int bio_make_pair(BIO *bio1, BIO *bio2); 602 static int bio_make_pair(BIO *bio1, BIO *bio2) in bio_make_pair() argument 607 assert(bio2 != NULL); in bio_make_pair() 610 b2 = bio2->ptr; in bio_make_pair() 633 b1->peer = bio2; in bio_make_pair() 641 bio2->init = 1; in bio_make_pair() 678 BIO *bio1 = NULL, *bio2 = NULL; in BIO_new_bio_pair() local 685 bio2 = BIO_new(BIO_s_bio()); in BIO_new_bio_pair() 686 if (bio2 == NULL) in BIO_new_bio_pair() 695 r = BIO_set_write_buf_size(bio2, writebuf2); in BIO_new_bio_pair() [all …]
|
| H A D | bss_dgram_pair.c | 339 static int dgram_pair_ctrl_make_bio_pair(BIO *bio1, BIO *bio2) in dgram_pair_ctrl_make_bio_pair() argument 344 if (bio1 == NULL || bio2 == NULL) { in dgram_pair_ctrl_make_bio_pair() 350 if (bio1->method != &dgram_pair_method || bio2->method != &dgram_pair_method) { in dgram_pair_ctrl_make_bio_pair() 357 b2 = bio2->ptr; in dgram_pair_ctrl_make_bio_pair() 393 b1->peer = bio2; in dgram_pair_ctrl_make_bio_pair() 398 bio2->init = 1; in dgram_pair_ctrl_make_bio_pair() 405 BIO *bio2; in dgram_pair_ctrl_destroy_bio_pair() local 417 bio2 = b1->peer; in dgram_pair_ctrl_destroy_bio_pair() 418 b2 = bio2->ptr; in dgram_pair_ctrl_destroy_bio_pair() 427 bio2->init = 0; in dgram_pair_ctrl_destroy_bio_pair() [all …]
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | BIO_s_bio.pod | 24 int BIO_new_bio_pair(BIO **bio1, size_t writebuf1, BIO **bio2, size_t writebuf2); 80 BIO_set_write_buf_size() to create a connected pair of BIOs B<bio1>, B<bio2> 83 B<bio1> or B<bio2> do point to some other BIO, the values are overwritten, 175 B<bio1> and B<bio2>, or 0 on failure, with NULL pointers stored into the 176 locations for B<bio1> and B<bio2>. Check the error stack for more information.
|
| H A D | BIO_s_dgram_pair.pod | 17 BIO **bio2, size_t writebuf2); 50 pair of BIOs B<bio1>, B<bio2> with write buffer sizes B<writebuf1> and 204 B<bio1> and B<bio2>, or 0 on failure, with NULL pointers stored into the 205 locations for B<bio1> and B<bio2>. Check the error stack for more information.
|
| /freebsd/crypto/openssl/include/openssl/ |
| H A D | bio.h.in | 905 BIO **bio2, size_t writebuf2); 908 BIO **bio2, size_t writebuf2); 912 * If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints. 913 * Otherwise returns 0 and sets *bio1 and *bio2 to NULL. Size 0 uses default
|
| H A D | bio.h | 928 BIO **bio2, size_t writebuf2); 931 BIO **bio2, size_t writebuf2);
|