/netbsd-src/crypto/external/bsd/openssl/dist/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()
|
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/ |
H A D | bio_memleak_test.c | 111 BIO *bio, *bio2 = NULL; in test_bio_rdonly_mem_buf() local 126 bio2 = BIO_new(BIO_s_mem()); in test_bio_rdonly_mem_buf() 127 if (!TEST_ptr(bio2)) in test_bio_rdonly_mem_buf() 129 BIO_set_mem_buf(bio2, bufmem, BIO_CLOSE); in test_bio_rdonly_mem_buf() 130 BIO_set_flags(bio2, BIO_FLAGS_MEM_RDONLY); in test_bio_rdonly_mem_buf() 132 if (!TEST_int_eq(BIO_read(bio2, data, 16), 7)) in test_bio_rdonly_mem_buf() 136 if (!TEST_int_gt(BIO_reset(bio2), 0)) in test_bio_rdonly_mem_buf() 138 if (!TEST_int_eq(BIO_read(bio2, data, 16), 7)) in test_bio_rdonly_mem_buf() 146 BIO_free(bio2); in test_bio_rdonly_mem_buf()
|
H A D | sslapitest.c | 1790 static void setupbio(BIO **res, BIO *bio1, BIO *bio2, int type) in setupbio() argument 1800 *res = bio2; in setupbio() 1821 BIO *bio2 = NULL; in test_ssl_set_bio() local 1878 if (!TEST_ptr(bio2 = BIO_new(BIO_s_mem()))) in test_ssl_set_bio() 1883 setupbio(&irbio, bio1, bio2, initrbio); in test_ssl_set_bio() 1884 setupbio(&iwbio, bio1, bio2, initwbio); in test_ssl_set_bio() 1904 setupbio(&nrbio, bio1, bio2, newrbio); in test_ssl_set_bio() 1905 setupbio(&nwbio, bio1, bio2, newwbio); in test_ssl_set_bio() 1927 BIO_free(bio2); in test_ssl_set_bio()
|
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/bio/ |
H A D | bss_bio.c | 35 static int bio_make_pair(BIO *bio1, BIO *bio2); 606 static int bio_make_pair(BIO *bio1, BIO *bio2) in bio_make_pair() argument 611 assert(bio2 != NULL); in bio_make_pair() 614 b2 = bio2->ptr; in bio_make_pair() 641 b1->peer = bio2; in bio_make_pair() 649 bio2->init = 1; in bio_make_pair() 686 BIO *bio1 = NULL, *bio2 = NULL; in BIO_new_bio_pair() local 693 bio2 = BIO_new(BIO_s_bio()); in BIO_new_bio_pair() 694 if (bio2 == NULL) in BIO_new_bio_pair() 703 r = BIO_set_write_buf_size(bio2, writebuf2); in BIO_new_bio_pair() [all …]
|
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/bio/ |
H A D | bss_bio.c | 35 static int bio_make_pair(BIO *bio1, BIO *bio2); 608 static int bio_make_pair(BIO *bio1, BIO *bio2) in bio_make_pair() argument 613 assert(bio2 != NULL); in bio_make_pair() 616 b2 = bio2->ptr; in bio_make_pair() 643 b1->peer = bio2; in bio_make_pair() 651 bio2->init = 1; in bio_make_pair() 688 BIO *bio1 = NULL, *bio2 = NULL; in BIO_new_bio_pair() local 695 bio2 = BIO_new(BIO_s_bio()); in BIO_new_bio_pair() 696 if (bio2 == NULL) in BIO_new_bio_pair() 705 r = BIO_set_write_buf_size(bio2, writebuf2); in BIO_new_bio_pair() [all …]
|
/netbsd-src/crypto/external/bsd/openssl/dist/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.
|
/netbsd-src/crypto/external/bsd/openssl.old/dist/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.
|
/netbsd-src/crypto/external/bsd/openssl/dist/include/openssl/ |
H A D | bio.h.in | 784 BIO **bio2, size_t writebuf2); 786 * If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints. 787 * Otherwise returns 0 and sets *bio1 and *bio2 to NULL. Size 0 uses default
|
/netbsd-src/crypto/external/bsd/openssl.old/dist/include/openssl/ |
H A D | bio.h | 722 BIO **bio2, size_t writebuf2);
|