Lines Matching defs:membio
54 static int compare_with_file(const char *alg, int type, BIO *membio)
110 len = BIO_get_mem_data(membio, &memdata);
126 (void)BIO_reset(membio);
143 BIO *membio = BIO_new(BIO_s_mem());
146 if (!TEST_ptr(membio))
183 || !TEST_int_gt(EVP_PKEY_print_private(membio, pk, 0, NULL), 0)
184 || !TEST_true(compare_with_file(alg, PRIV_TEXT, membio))
186 || !TEST_true(PEM_write_bio_PUBKEY(membio, pk))
187 || !TEST_true(compare_with_file(alg, PUB_PEM, membio))
189 || !TEST_true(PEM_write_bio_PrivateKey(membio, pk,
191 || !TEST_true(compare_with_file(alg, PRIV_PEM, membio))
193 || !TEST_false(PEM_write_bio_PrivateKey(membio, NULL,
195 || !TEST_false(PEM_write_bio_PrivateKey_traditional(membio, NULL,
201 BIO_free(membio);
211 BIO *membio = BIO_new(BIO_s_mem());
262 if (!TEST_ptr(membio))
277 if (!TEST_true(OSSL_ENCODER_to_bio(ctx, membio))
278 || !TEST_true(compare_with_file(alg, type, membio)))
303 || !TEST_true(OSSL_ENCODER_to_bio(ctx, membio))
304 || !TEST_true(compare_with_file(alg, type, membio)))
309 BIO_free(membio);