Home
last modified time | relevance | path

Searched refs:bio1 (Results 1 – 11 of 11) sorted by relevance

/freebsd/crypto/openssl/test/
H A Dbio_meth_test.c17 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 Dbio_dgram_test.c496 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()
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()
610 if (!TEST_true(BIO_sendmmsg(bio1, msgs, sizeof(BIO_MSG), OSSL_NELEM(msgs), 0, in test_bio_dgram_pair()
660 if (!TEST_false(BIO_sendmmsg(bio1, msgs, sizeof(BIO_MSG), in test_bio_dgram_pair()
671 if (!TEST_int_eq(BIO_dgram_get_effective_caps(bio1), ref_caps)) in test_bio_dgram_pair()
677 if (!TEST_int_eq(BIO_dgram_set_caps(bio1, ref_caps), 1)) in test_bio_dgram_pair()
[all …]
H A Dthreadstest.c1233 BIO *bio1 = NULL, *bio2 = NULL; in test_bio_dgram_pair() local
1235 r = BIO_new_bio_dgram_pair(&bio1, 0, &bio2, 0); in test_bio_dgram_pair()
1239 multi_bio1 = bio1; in test_bio_dgram_pair()
1247 BIO_free(bio1); in test_bio_dgram_pair()
H A Dquic_txp_test.c61 BIO *bio1, *bio2; member
121 BIO_free(h->bio1); in helper_cleanup()
144 if (!TEST_true(BIO_new_bio_dgram_pair(&h->bio1, 0, &h->bio2, 0))) in helper_init()
147 h->qtx_args.bio = h->bio1; in helper_init()
H A Dsslapitest.c2911 static void setupbio(BIO **res, BIO *bio1, BIO *bio2, int type) in setupbio() argument
2918 *res = bio1; in setupbio()
2940 BIO *bio1 = NULL; in test_ssl_set_bio() local
2990 if (!TEST_ptr(bio1 = BIO_new(BIO_s_mem()))) in test_ssl_set_bio()
3003 setupbio(&irbio, bio1, bio2, initrbio); in test_ssl_set_bio()
3004 setupbio(&iwbio, bio1, bio2, initwbio); in test_ssl_set_bio()
3026 setupbio(&nrbio, bio1, bio2, newrbio); in test_ssl_set_bio()
3027 setupbio(&nwbio, bio1, bio2, newwbio); in test_ssl_set_bio()
3054 BIO_free(bio1); in test_ssl_set_bio()
/freebsd/crypto/openssl/crypto/bio/
H A Dbss_bio.c35 static int bio_make_pair(BIO *bio1, BIO *bio2);
602 static int bio_make_pair(BIO *bio1, BIO *bio2) in bio_make_pair() argument
606 assert(bio1 != NULL); in bio_make_pair()
609 b1 = bio1->ptr; in bio_make_pair()
636 b2->peer = bio1; in bio_make_pair()
640 bio1->init = 1; in bio_make_pair()
678 BIO *bio1 = NULL, *bio2 = NULL; in BIO_new_bio_pair() local
682 bio1 = BIO_new(BIO_s_bio()); in BIO_new_bio_pair()
683 if (bio1 == NULL) in BIO_new_bio_pair()
690 r = BIO_set_write_buf_size(bio1, writebuf1); in BIO_new_bio_pair()
[all …]
H A Dbss_dgram_pair.c193 static int dgram_pair_ctrl_destroy_bio_pair(BIO *bio1);
338 static int dgram_pair_ctrl_make_bio_pair(BIO *bio1, BIO *bio2) in dgram_pair_ctrl_make_bio_pair() argument
343 if (bio1 == NULL || bio2 == NULL) { in dgram_pair_ctrl_make_bio_pair()
349 if (bio1->method != &dgram_pair_method || bio2->method != &dgram_pair_method) { in dgram_pair_ctrl_make_bio_pair()
355 b1 = bio1->ptr; in dgram_pair_ctrl_make_bio_pair()
393 b2->peer = bio1; in dgram_pair_ctrl_make_bio_pair()
396 bio1->init = 1; in dgram_pair_ctrl_make_bio_pair()
402 static int dgram_pair_ctrl_destroy_bio_pair(BIO *bio1) in dgram_pair_ctrl_destroy_bio_pair() argument
405 struct bio_dgram_pair_st *b1 = bio1->ptr, *b2; in dgram_pair_ctrl_destroy_bio_pair()
408 bio1->init = 0; in dgram_pair_ctrl_destroy_bio_pair()
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DBIO_s_bio.pod23 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 DBIO_s_dgram_pair.pod16 int BIO_new_bio_dgram_pair(BIO **bio1, size_t writebuf1,
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 Dbio.h.in904 int BIO_new_bio_pair(BIO **bio1, size_t writebuf1,
907 int BIO_new_bio_dgram_pair(BIO **bio1, size_t writebuf1,
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 Dbio.h927 int BIO_new_bio_pair(BIO **bio1, size_t writebuf1,
930 int BIO_new_bio_dgram_pair(BIO **bio1, size_t writebuf1,