Lines Matching refs:bio
31 BIO *bio = NULL; in load_cert_pem() local
33 if (!TEST_ptr(bio = BIO_new(BIO_s_file()))) in load_cert_pem()
35 if (TEST_int_gt(BIO_read_filename(bio, file), 0)) in load_cert_pem()
36 (void)TEST_ptr(cert = PEM_read_bio_X509(bio, NULL, NULL, NULL)); in load_cert_pem()
38 BIO_free(bio); in load_cert_pem()
45 BIO *bio; in STACK_OF() local
48 bio = BIO_new_file(filename, "r"); in STACK_OF()
50 if (bio == NULL) { in STACK_OF()
56 BIO_free(bio); in STACK_OF()
62 x = PEM_read_bio_X509(bio, NULL, 0, NULL); in STACK_OF()
65 BIO_free(bio); in STACK_OF()
76 BIO_free(bio); in STACK_OF()
116 BIO *bio = NULL; in test_alt_chains_cert_forgery() local
133 if ((bio = BIO_new_file(bad_f, "r")) == NULL) in test_alt_chains_cert_forgery()
136 if ((x = PEM_read_bio_X509(bio, NULL, 0, NULL)) == NULL) in test_alt_chains_cert_forgery()
167 BIO_free(bio); in test_alt_chains_cert_forgery()
177 BIO *bio = NULL; in test_store_ctx() local
180 bio = BIO_new_file(bad_f, "r"); in test_store_ctx()
181 if (bio == NULL) in test_store_ctx()
184 x = PEM_read_bio_X509(bio, NULL, 0, NULL); in test_store_ctx()
206 BIO_free(bio); in test_store_ctx()