Lines Matching refs:bio_out

1519 	BIO * bio_out;  in PHP_FUNCTION()  local
1542 bio_out = BIO_new_file(file_path, PHP_OPENSSL_BIO_MODE_W(PKCS7_BINARY)); in PHP_FUNCTION()
1543 if (bio_out) { in PHP_FUNCTION()
1544 if (!notext && !X509_print(bio_out, cert)) { in PHP_FUNCTION()
1547 if (!PEM_write_bio_X509(bio_out, cert)) { in PHP_FUNCTION()
1561 if (!BIO_free(bio_out)) { in PHP_FUNCTION()
1826 BIO * bio_out; in PHP_FUNCTION() local
1843 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
1844 if (!bio_out) { in PHP_FUNCTION()
1848 if (!notext && !X509_print(bio_out, cert)) { in PHP_FUNCTION()
1851 if (PEM_write_bio_X509(bio_out, cert)) { in PHP_FUNCTION()
1854 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
1862 BIO_free(bio_out); in PHP_FUNCTION()
2089 BIO *bio_out; in PHP_FUNCTION() local
2209 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
2210 if (bio_out == NULL) { in PHP_FUNCTION()
2215 if (openssl_x509v3_subjectAltName(bio_out, extension) == 0) { in PHP_FUNCTION()
2216 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2220 BIO_free(bio_out); in PHP_FUNCTION()
2227 else if (X509V3_EXT_print(bio_out, extension, 0, 0)) { in PHP_FUNCTION()
2228 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2233 BIO_free(bio_out); in PHP_FUNCTION()
2574 BIO * bio_out = NULL; in PHP_FUNCTION() local
2641 bio_out = BIO_new_file(file_path, PHP_OPENSSL_BIO_MODE_W(PKCS7_BINARY)); in PHP_FUNCTION()
2642 if (bio_out != NULL) { in PHP_FUNCTION()
2643 if (i2d_PKCS12_bio(bio_out, p12) == 0) { in PHP_FUNCTION()
2649 BIO_free(bio_out); in PHP_FUNCTION()
2677 BIO * bio_out; in PHP_FUNCTION() local
2732 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
2733 if (i2d_PKCS12_bio(bio_out, p12)) { in PHP_FUNCTION()
2736 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2744 BIO_free(bio_out); in PHP_FUNCTION()
2788 BIO * bio_out; in PHP_FUNCTION() local
2797 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
2798 if (PEM_write_bio_X509(bio_out, cert)) { in PHP_FUNCTION()
2800 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2806 BIO_free(bio_out); in PHP_FUNCTION()
2810 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
2811 if (PEM_write_bio_PrivateKey(bio_out, pkey, NULL, NULL, 0, 0, NULL)) { in PHP_FUNCTION()
2813 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2819 BIO_free(bio_out); in PHP_FUNCTION()
2831 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
2832 if (PEM_write_bio_X509(bio_out, aCA)) { in PHP_FUNCTION()
2834 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2840 BIO_free(bio_out); in PHP_FUNCTION()
3087 BIO * bio_out; in PHP_FUNCTION() local
3108 bio_out = BIO_new_file(file_path, PHP_OPENSSL_BIO_MODE_W(PKCS7_BINARY)); in PHP_FUNCTION()
3109 if (bio_out != NULL) { in PHP_FUNCTION()
3110 if (!notext && !X509_REQ_print(bio_out, csr)) { in PHP_FUNCTION()
3113 if (!PEM_write_bio_X509_REQ(bio_out, csr)) { in PHP_FUNCTION()
3119 BIO_free(bio_out); in PHP_FUNCTION()
3139 BIO * bio_out; in PHP_FUNCTION() local
3158 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
3159 if (!notext && !X509_REQ_print(bio_out, csr)) { in PHP_FUNCTION()
3163 if (PEM_write_bio_X509_REQ(bio_out, csr)) { in PHP_FUNCTION()
3166 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
3177 BIO_free(bio_out); in PHP_FUNCTION()
4720 BIO * bio_out = NULL; in PHP_FUNCTION() local
4745 bio_out = BIO_new_file(file_path, PHP_OPENSSL_BIO_MODE_W(PKCS7_BINARY)); in PHP_FUNCTION()
4746 if (bio_out == NULL) { in PHP_FUNCTION()
4762 bio_out, key, cipher, in PHP_FUNCTION()
4776 BIO_free(bio_out); in PHP_FUNCTION()
4788 BIO * bio_out = NULL; in PHP_FUNCTION() local
4809 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
4822 bio_out, key, cipher, in PHP_FUNCTION()
4832 bio_mem_len = BIO_get_mem_data(bio_out, &bio_mem_ptr); in PHP_FUNCTION()
4840 BIO_free(bio_out); in PHP_FUNCTION()
5661 BIO * bio_in = NULL, * bio_out = NULL; in PHP_FUNCTION() local
5716 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
5717 if (bio_out && PEM_write_bio_X509(bio_out, ca)) { in PHP_FUNCTION()
5719 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
5722 BIO_free(bio_out); in PHP_FUNCTION()
5731 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
5732 if (bio_out && PEM_write_bio_X509_CRL(bio_out, crl)) { in PHP_FUNCTION()
5734 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
5737 BIO_free(bio_out); in PHP_FUNCTION()
6309 BIO * bio_in = NULL, * bio_out = NULL; in PHP_FUNCTION() local
6357 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
6358 if (bio_out && PEM_write_bio_X509(bio_out, ca)) { in PHP_FUNCTION()
6360 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
6363 BIO_free(bio_out); in PHP_FUNCTION()
6372 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
6373 if (bio_out && PEM_write_bio_X509_CRL(bio_out, crl)) { in PHP_FUNCTION()
6375 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
6378 BIO_free(bio_out); in PHP_FUNCTION()