Home
last modified time | relevance | path

Searched refs:certbio (Results 1 – 4 of 4) sorted by relevance

/freebsd/crypto/openssl/test/
H A Docspapitest.c27 BIO *certbio, *keybio; in get_cert_and_key() local
31 if (!TEST_ptr(certbio = BIO_new_file(certstr, "r"))) in get_cert_and_key()
33 cert = PEM_read_bio_X509(certbio, NULL, NULL, NULL); in get_cert_and_key()
34 BIO_free(certbio); in get_cert_and_key()
52 BIO *certbio; in get_cert() local
55 if (!TEST_ptr(certbio = BIO_new_file(certstr, "r"))) in get_cert()
57 cert = PEM_read_bio_X509(certbio, NULL, NULL, NULL); in get_cert()
58 BIO_free(certbio); in get_cert()
H A Dcmsapitest.c768 BIO *certbio = NULL, *keybio = NULL, *msgbio = NULL, *outbio = NULL; in test_kari_wrap_pad_unwrap_overflow() local
776 if ((certbio = BIO_new_file(ec_recip_in, "r")) == NULL in test_kari_wrap_pad_unwrap_overflow()
777 || PEM_read_bio_X509(certbio, &eccert, NULL, NULL) == NULL in test_kari_wrap_pad_unwrap_overflow()
826 BIO_free(certbio); in test_kari_wrap_pad_unwrap_overflow()
841 BIO *certbio = NULL, *privkeybio = NULL; in setup_tests() local
856 certbio = BIO_new_file(certin, "r"); in setup_tests()
857 if (!TEST_ptr(certbio)) in setup_tests()
859 if (!TEST_true(PEM_read_bio_X509(certbio, &cert, NULL, NULL))) { in setup_tests()
860 BIO_free(certbio); in setup_tests()
863 BIO_free(certbio); in setup_tests()
H A Dsslapitest.c2050 BIO *certbio = NULL; in test_tlsext_status_type() local
2139 if (!TEST_ptr(certbio = BIO_new_file(cert, "r")) in test_tlsext_status_type()
2143 || !TEST_ptr(PEM_read_bio_X509(certbio, &ocspcert, NULL, NULL)) in test_tlsext_status_type()
2152 BIO_free(certbio); in test_tlsext_status_type()
2153 certbio = NULL; in test_tlsext_status_type()
2170 BIO_free(certbio); in test_tlsext_status_type()
10669 BIO *keybio = NULL, *certbio = NULL; in create_cert_key() local
10692 || !TEST_ptr(certbio = BIO_new_file(certfilename, "wb")) in create_cert_key()
10693 || !TEST_true(PEM_write_bio_X509(certbio, x509))) in create_cert_key()
10700 BIO_free(certbio); in create_cert_key()
/freebsd/crypto/openssl/test/helpers/
H A Dssltestlib.c1548 BIO *certbio = NULL; in ssl_ctx_add_large_cert_chain() local
1554 if (!TEST_ptr(certbio = BIO_new_file(cert_file, "r"))) in ssl_ctx_add_large_cert_chain()
1560 if (PEM_read_bio_X509(certbio, &chaincert, NULL, NULL) == NULL) in ssl_ctx_add_large_cert_chain()
1562 BIO_free(certbio); in ssl_ctx_add_large_cert_chain()
1563 certbio = NULL; in ssl_ctx_add_large_cert_chain()
1585 BIO_free(certbio); in ssl_ctx_add_large_cert_chain()