Lines Matching refs:bufmem
20 BUF_MEM bufmem; in test_bio_memleak() local
27 bufmem.length = sizeof(str); in test_bio_memleak()
28 bufmem.data = (char *) str; in test_bio_memleak()
29 bufmem.max = bufmem.length; in test_bio_memleak()
30 BIO_set_mem_buf(bio, &bufmem, BIO_NOCLOSE); in test_bio_memleak()
47 BUF_MEM *bufmem = NULL; in test_bio_get_mem() local
54 BIO_get_mem_ptr(bio, &bufmem); in test_bio_get_mem()
55 if (!TEST_ptr(bufmem)) in test_bio_get_mem()
61 if (!TEST_mem_eq(bufmem->data, bufmem->length, "Hello World\n", 12)) in test_bio_get_mem()
67 BUF_MEM_free(bufmem); in test_bio_get_mem()
75 BUF_MEM *bufmem; in test_bio_new_mem_buf() local
85 if (!TEST_int_gt(BIO_get_mem_ptr(bio, &bufmem), 0)) in test_bio_new_mem_buf()
110 BUF_MEM *bufmem; in test_bio_rdonly_mem_buf() local
120 if (!TEST_int_gt(BIO_get_mem_ptr(bio, &bufmem), 0)) in test_bio_rdonly_mem_buf()
127 BIO_set_mem_buf(bio2, bufmem, BIO_CLOSE); in test_bio_rdonly_mem_buf()
241 BUF_MEM bufmem; in test_bio_i2d_ASN1_mime() local
248 bufmem.length = sizeof(str); in test_bio_i2d_ASN1_mime()
249 bufmem.data = (char *) str; in test_bio_i2d_ASN1_mime()
250 bufmem.max = bufmem.length; in test_bio_i2d_ASN1_mime()
251 BIO_set_mem_buf(bio, &bufmem, BIO_NOCLOSE); in test_bio_i2d_ASN1_mime()