Searched refs:membio (Results 1 – 5 of 5) sorted by relevance
/openssl/test/ |
H A D | bio_meth_test.c | 17 BIO *membio = NULL, *bio1 = NULL, *bio2 = NULL, *bio3 = NULL; in test_bio_meth() local 29 || !TEST_ptr(membio = BIO_new(BIO_s_mem()))) in test_bio_meth() 34 BIO_set_next(bio1, membio); in test_bio_meth() 45 if (!TEST_ptr_eq(BIO_find_type(bio3, BIO_TYPE_MEM), membio) in test_bio_meth() 57 BIO_free(membio); in test_bio_meth()
|
H A D | evp_pkey_provided_test.c | 110 len = BIO_get_mem_data(membio, &memdata); in compare_with_file() 126 (void)BIO_reset(membio); in compare_with_file() 143 BIO *membio = BIO_new(BIO_s_mem()); in test_print_key_using_pem() local 146 if (!TEST_ptr(membio)) in test_print_key_using_pem() 186 || !TEST_true(PEM_write_bio_PUBKEY(membio, pk)) in test_print_key_using_pem() 189 || !TEST_true(PEM_write_bio_PrivateKey(membio, pk, in test_print_key_using_pem() 201 BIO_free(membio); in test_print_key_using_pem() 211 BIO *membio = BIO_new(BIO_s_mem()); in test_print_key_type_using_encoder() local 262 if (!TEST_ptr(membio)) in test_print_key_type_using_encoder() 277 if (!TEST_true(OSSL_ENCODER_to_bio(ctx, membio)) in test_print_key_type_using_encoder() [all …]
|
H A D | evp_extra_test.c | 1725 BIO *mdbio = NULL, *membio = NULL; in test_EVP_DigestSignInit() local 1740 membio = BIO_new(BIO_s_mem()); in test_EVP_DigestSignInit() 1742 if (!TEST_ptr(membio) || !TEST_ptr(mdbio)) in test_EVP_DigestSignInit() 1744 BIO_push(mdbio, membio); in test_EVP_DigestSignInit() 1868 BIO_free(membio); in test_EVP_DigestSignInit() 2159 BIO *membio = NULL; in test_EVP_PKCS82PKEY_wrong_tag() local 2168 if (!TEST_ptr(membio = BIO_new(BIO_s_mem())) in test_EVP_PKCS82PKEY_wrong_tag() 2185 BIO_free_all(membio); in test_EVP_PKCS82PKEY_wrong_tag() 2193 BIO *membio = NULL; in test_privatekey_to_pkcs8() local 2198 if (!TEST_ptr(membio = BIO_new(BIO_s_mem())) in test_privatekey_to_pkcs8() [all …]
|
H A D | quicapitest.c | 441 static int compare_with_file(BIO *membio) in compare_with_file() argument 465 while (BIO_gets(membio, buf2, sizeof(buf2)) > 0) in compare_with_file() 471 if (!TEST_int_ge(BIO_seek(membio, 0), 0)) in compare_with_file() 475 if (BIO_gets(membio, buf2, sizeof(buf2)) <= 0) { in compare_with_file() 496 || !TEST_true(BIO_eof(membio))) in compare_with_file()
|
/openssl/crypto/encode_decode/ |
H A D | decoder_lib.c | 148 BIO *membio; in OSSL_DECODER_from_data() local 156 membio = BIO_new_mem_buf(*pdata, (int)*pdata_len); in OSSL_DECODER_from_data() 157 if (OSSL_DECODER_from_bio(ctx, membio)) { in OSSL_DECODER_from_data() 158 *pdata_len = (size_t)BIO_get_mem_data(membio, pdata); in OSSL_DECODER_from_data() 161 BIO_free(membio); in OSSL_DECODER_from_data()
|
Completed in 35 milliseconds