Lines Matching refs:membio
1370 BIO *mdbio = NULL, *membio = NULL; in test_EVP_DigestSignInit() local
1385 membio = BIO_new(BIO_s_mem()); in test_EVP_DigestSignInit()
1387 if (!TEST_ptr(membio) || !TEST_ptr(mdbio)) in test_EVP_DigestSignInit()
1389 BIO_push(mdbio, membio); in test_EVP_DigestSignInit()
1513 BIO_free(membio); in test_EVP_DigestSignInit()
1804 BIO *membio = NULL; in test_EVP_PKCS82PKEY_wrong_tag() local
1813 if (!TEST_ptr(membio = BIO_new(BIO_s_mem())) in test_EVP_PKCS82PKEY_wrong_tag()
1815 || !TEST_int_gt(i2d_PKCS8PrivateKey_bio(membio, pkey, NULL, in test_EVP_PKCS82PKEY_wrong_tag()
1818 || !TEST_int_gt(BIO_get_mem_data(membio, &membuf), 0) in test_EVP_PKCS82PKEY_wrong_tag()
1819 || !TEST_ptr(p8inf = d2i_PKCS8_PRIV_KEY_INFO_bio(membio, NULL)) in test_EVP_PKCS82PKEY_wrong_tag()
1830 BIO_free_all(membio); in test_EVP_PKCS82PKEY_wrong_tag()
1838 BIO *membio = NULL; in test_privatekey_to_pkcs8() local
1843 if (!TEST_ptr(membio = BIO_new(BIO_s_mem())) in test_privatekey_to_pkcs8()
1845 || !TEST_int_gt(i2d_PKCS8PrivateKey_bio(membio, pkey, NULL, in test_privatekey_to_pkcs8()
1848 || !TEST_int_gt(membuf_len = BIO_get_mem_data(membio, &membuf), 0) in test_privatekey_to_pkcs8()
1856 || !TEST_int_gt(PEM_write_bio_PKCS8PrivateKey(membio, pkey, NULL, in test_privatekey_to_pkcs8()
1864 BIO_free_all(membio); in test_privatekey_to_pkcs8()