Lines Matching refs:bio_out
1545 BIO * bio_out; in PHP_FUNCTION() local
1568 bio_out = BIO_new_file(file_path, PHP_OPENSSL_BIO_MODE_W(PKCS7_BINARY)); in PHP_FUNCTION()
1569 if (bio_out) { in PHP_FUNCTION()
1570 if (!notext && !X509_print(bio_out, cert)) { in PHP_FUNCTION()
1573 if (!PEM_write_bio_X509(bio_out, cert)) { in PHP_FUNCTION()
1583 if (!BIO_free(bio_out)) { in PHP_FUNCTION()
1851 BIO * bio_out; in PHP_FUNCTION() local
1868 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
1869 if (!bio_out) { in PHP_FUNCTION()
1873 if (!notext && !X509_print(bio_out, cert)) { in PHP_FUNCTION()
1876 if (PEM_write_bio_X509(bio_out, cert)) { in PHP_FUNCTION()
1879 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
1887 BIO_free(bio_out); in PHP_FUNCTION()
2114 BIO *bio_out; in PHP_FUNCTION() local
2234 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
2235 if (bio_out == NULL) { in PHP_FUNCTION()
2240 if (openssl_x509v3_subjectAltName(bio_out, extension) == 0) { in PHP_FUNCTION()
2241 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2244 BIO_free(bio_out); in PHP_FUNCTION()
2248 else if (X509V3_EXT_print(bio_out, extension, 0, 0)) { in PHP_FUNCTION()
2249 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2254 BIO_free(bio_out); in PHP_FUNCTION()
2605 BIO * bio_out = NULL; in PHP_FUNCTION() local
2672 bio_out = BIO_new_file(file_path, PHP_OPENSSL_BIO_MODE_W(PKCS7_BINARY)); in PHP_FUNCTION()
2673 if (bio_out != NULL) { in PHP_FUNCTION()
2674 if (i2d_PKCS12_bio(bio_out, p12) == 0) { in PHP_FUNCTION()
2680 BIO_free(bio_out); in PHP_FUNCTION()
2708 BIO * bio_out; in PHP_FUNCTION() local
2763 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
2764 if (i2d_PKCS12_bio(bio_out, p12)) { in PHP_FUNCTION()
2767 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2775 BIO_free(bio_out); in PHP_FUNCTION()
2819 BIO * bio_out; in PHP_FUNCTION() local
2828 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
2829 if (PEM_write_bio_X509(bio_out, cert)) { in PHP_FUNCTION()
2831 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2837 BIO_free(bio_out); in PHP_FUNCTION()
2841 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
2842 if (PEM_write_bio_PrivateKey(bio_out, pkey, NULL, NULL, 0, 0, NULL)) { in PHP_FUNCTION()
2844 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2850 BIO_free(bio_out); in PHP_FUNCTION()
2862 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
2863 if (PEM_write_bio_X509(bio_out, aCA)) { in PHP_FUNCTION()
2865 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2871 BIO_free(bio_out); in PHP_FUNCTION()
3129 BIO * bio_out; in PHP_FUNCTION() local
3150 bio_out = BIO_new_file(file_path, PHP_OPENSSL_BIO_MODE_W(PKCS7_BINARY)); in PHP_FUNCTION()
3151 if (bio_out != NULL) { in PHP_FUNCTION()
3152 if (!notext && !X509_REQ_print(bio_out, csr)) { in PHP_FUNCTION()
3155 if (!PEM_write_bio_X509_REQ(bio_out, csr)) { in PHP_FUNCTION()
3161 BIO_free(bio_out); in PHP_FUNCTION()
3182 BIO * bio_out; in PHP_FUNCTION() local
3201 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
3202 if (!notext && !X509_REQ_print(bio_out, csr)) { in PHP_FUNCTION()
3206 if (PEM_write_bio_X509_REQ(bio_out, csr)) { in PHP_FUNCTION()
3209 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
3220 BIO_free(bio_out); in PHP_FUNCTION()
4902 BIO * bio_out = NULL; in PHP_FUNCTION() local
4927 bio_out = BIO_new_file(file_path, PHP_OPENSSL_BIO_MODE_W(PKCS7_BINARY)); in PHP_FUNCTION()
4928 if (bio_out == NULL) { in PHP_FUNCTION()
4944 bio_out, key, cipher, in PHP_FUNCTION()
4957 BIO_free(bio_out); in PHP_FUNCTION()
4971 BIO * bio_out = NULL; in PHP_FUNCTION() local
4992 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
5005 bio_out, key, cipher, in PHP_FUNCTION()
5015 bio_mem_len = BIO_get_mem_data(bio_out, &bio_mem_ptr); in PHP_FUNCTION()
5023 BIO_free(bio_out); in PHP_FUNCTION()
5887 BIO * bio_in = NULL, * bio_out = NULL; in PHP_FUNCTION() local
5942 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
5943 if (bio_out && PEM_write_bio_X509(bio_out, ca)) { in PHP_FUNCTION()
5945 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
5948 BIO_free(bio_out); in PHP_FUNCTION()
5957 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
5958 if (bio_out && PEM_write_bio_X509_CRL(bio_out, crl)) { in PHP_FUNCTION()
5960 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
5963 BIO_free(bio_out); in PHP_FUNCTION()
6535 BIO * bio_in = NULL, * bio_out = NULL; in PHP_FUNCTION() local
6583 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
6584 if (bio_out && PEM_write_bio_X509(bio_out, ca)) { in PHP_FUNCTION()
6586 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
6589 BIO_free(bio_out); in PHP_FUNCTION()
6598 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
6599 if (bio_out && PEM_write_bio_X509_CRL(bio_out, crl)) { in PHP_FUNCTION()
6601 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
6604 BIO_free(bio_out); in PHP_FUNCTION()