Lines Matching defs:bio
21 BIO *bio = NULL;
23 if (!TEST_ptr(file) || !TEST_ptr(bio = BIO_new(BIO_s_file())))
25 if (TEST_int_gt(BIO_read_filename(bio, file), 0)
27 (void)TEST_ptr(cert = PEM_read_bio_X509(bio, &cert, NULL, NULL));
29 BIO_free(bio);
36 BIO *bio;
39 if (!TEST_ptr(file) || (bio = BIO_new_file(file, "r")) == NULL)
44 BIO_free(bio);
50 x = PEM_read_bio_X509(bio, NULL, 0, NULL);
53 BIO_free(bio);
64 BIO_free(bio);
72 BIO *bio = NULL;
74 if (!TEST_ptr(file) || !TEST_ptr(bio = BIO_new(BIO_s_file())))
76 if (TEST_int_gt(BIO_read_filename(bio, file), 0)) {
79 if (TEST_ptr(key = PEM_read_bio_PrivateKey_ex(bio, NULL, NULL, NULL,
88 BIO_free(bio);
95 BIO *bio = NULL;
97 if (!TEST_ptr(file) || !TEST_ptr(bio = BIO_new_file(file, "rb")))
102 (void)TEST_ptr(d2i_X509_REQ_bio(bio, &csr));
103 BIO_free(bio);