Lines Matching refs:infile
29 BIO *infile = NULL; in getfile() local
33 infile = BIO_new_file(paramsfile, "r"); in getfile()
37 return infile; in getfile()
44 BIO *infile = getfile("dhparams.pem"); in test_read_dh_params() local
47 if (!TEST_ptr(infile)) in test_read_dh_params()
50 dh = PEM_read_bio_DHparams(infile, NULL, NULL, NULL); in test_read_dh_params()
57 BIO_free(infile); in test_read_dh_params()
65 BIO *infile = getfile("x942params.pem"); in test_read_dh_x942_params() local
68 if (!TEST_ptr(infile)) in test_read_dh_x942_params()
71 dh = PEM_read_bio_DHparams(infile, NULL, NULL, NULL); in test_read_dh_x942_params()
78 BIO_free(infile); in test_read_dh_x942_params()
88 BIO *infile = getfile("dsaparams.pem"); in test_read_dsa_params() local
91 if (!TEST_ptr(infile)) in test_read_dsa_params()
94 dsa = PEM_read_bio_DSAparams(infile, NULL, NULL, NULL); in test_read_dsa_params()
101 BIO_free(infile); in test_read_dsa_params()
109 BIO *infile = getfile("dsaprivatekey.pem"); in test_read_dsa_private() local
112 if (!TEST_ptr(infile)) in test_read_dsa_private()
115 dsa = PEM_read_bio_DSAPrivateKey(infile, NULL, NULL, NULL); in test_read_dsa_private()
122 BIO_free(infile); in test_read_dsa_private()
130 BIO *infile = getfile("dsapublickey.pem"); in test_read_dsa_public() local
133 if (!TEST_ptr(infile)) in test_read_dsa_public()
136 dsa = PEM_read_bio_DSA_PUBKEY(infile, NULL, NULL, NULL); in test_read_dsa_public()
143 BIO_free(infile); in test_read_dsa_public()
152 BIO *infile = getfile("rsaprivatekey.pem"); in test_read_rsa_private() local
155 if (!TEST_ptr(infile)) in test_read_rsa_private()
158 rsa = PEM_read_bio_RSAPrivateKey(infile, NULL, NULL, NULL); in test_read_rsa_private()
165 BIO_free(infile); in test_read_rsa_private()
173 BIO *infile = getfile("rsapublickey.pem"); in test_read_rsa_public() local
176 if (!TEST_ptr(infile)) in test_read_rsa_public()
179 rsa = PEM_read_bio_RSA_PUBKEY(infile, NULL, NULL, NULL); in test_read_rsa_public()
186 BIO_free(infile); in test_read_rsa_public()