Lines Matching refs:bio_out

1592 	BIO * bio_out;  in PHP_FUNCTION()  local
1615 bio_out = BIO_new_file(file_path, PHP_OPENSSL_BIO_MODE_W(PKCS7_BINARY)); in PHP_FUNCTION()
1616 if (bio_out) { in PHP_FUNCTION()
1617 if (!notext && !X509_print(bio_out, cert)) { in PHP_FUNCTION()
1620 if (!PEM_write_bio_X509(bio_out, cert)) { in PHP_FUNCTION()
1634 if (!BIO_free(bio_out)) { in PHP_FUNCTION()
1902 BIO * bio_out; in PHP_FUNCTION() local
1919 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
1920 if (!bio_out) { in PHP_FUNCTION()
1924 if (!notext && !X509_print(bio_out, cert)) { in PHP_FUNCTION()
1927 if (PEM_write_bio_X509(bio_out, cert)) { in PHP_FUNCTION()
1930 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
1938 BIO_free(bio_out); in PHP_FUNCTION()
2165 BIO *bio_out; in PHP_FUNCTION() local
2285 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
2286 if (bio_out == NULL) { in PHP_FUNCTION()
2291 if (openssl_x509v3_subjectAltName(bio_out, extension) == 0) { in PHP_FUNCTION()
2292 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2296 BIO_free(bio_out); in PHP_FUNCTION()
2303 else if (X509V3_EXT_print(bio_out, extension, 0, 0)) { in PHP_FUNCTION()
2304 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2309 BIO_free(bio_out); in PHP_FUNCTION()
2650 BIO * bio_out = NULL; in PHP_FUNCTION() local
2717 bio_out = BIO_new_file(file_path, PHP_OPENSSL_BIO_MODE_W(PKCS7_BINARY)); in PHP_FUNCTION()
2718 if (bio_out != NULL) { in PHP_FUNCTION()
2719 if (i2d_PKCS12_bio(bio_out, p12) == 0) { in PHP_FUNCTION()
2725 BIO_free(bio_out); in PHP_FUNCTION()
2753 BIO * bio_out; in PHP_FUNCTION() local
2808 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
2809 if (i2d_PKCS12_bio(bio_out, p12)) { in PHP_FUNCTION()
2812 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2820 BIO_free(bio_out); in PHP_FUNCTION()
2864 BIO * bio_out; in PHP_FUNCTION() local
2873 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
2874 if (PEM_write_bio_X509(bio_out, cert)) { in PHP_FUNCTION()
2876 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2882 BIO_free(bio_out); in PHP_FUNCTION()
2886 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
2887 if (PEM_write_bio_PrivateKey(bio_out, pkey, NULL, NULL, 0, 0, NULL)) { in PHP_FUNCTION()
2889 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2895 BIO_free(bio_out); in PHP_FUNCTION()
2907 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
2908 if (PEM_write_bio_X509(bio_out, aCA)) { in PHP_FUNCTION()
2910 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
2916 BIO_free(bio_out); in PHP_FUNCTION()
3163 BIO * bio_out; in PHP_FUNCTION() local
3184 bio_out = BIO_new_file(file_path, PHP_OPENSSL_BIO_MODE_W(PKCS7_BINARY)); in PHP_FUNCTION()
3185 if (bio_out != NULL) { in PHP_FUNCTION()
3186 if (!notext && !X509_REQ_print(bio_out, csr)) { in PHP_FUNCTION()
3189 if (!PEM_write_bio_X509_REQ(bio_out, csr)) { in PHP_FUNCTION()
3195 BIO_free(bio_out); in PHP_FUNCTION()
3215 BIO * bio_out; in PHP_FUNCTION() local
3234 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
3235 if (!notext && !X509_REQ_print(bio_out, csr)) { in PHP_FUNCTION()
3239 if (PEM_write_bio_X509_REQ(bio_out, csr)) { in PHP_FUNCTION()
3242 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
3253 BIO_free(bio_out); in PHP_FUNCTION()
4646 BIO * bio_out = NULL; in PHP_FUNCTION() local
4671 bio_out = BIO_new_file(file_path, PHP_OPENSSL_BIO_MODE_W(PKCS7_BINARY)); in PHP_FUNCTION()
4672 if (bio_out == NULL) { in PHP_FUNCTION()
4688 bio_out, key, cipher, in PHP_FUNCTION()
4702 BIO_free(bio_out); in PHP_FUNCTION()
4714 BIO * bio_out = NULL; in PHP_FUNCTION() local
4735 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
4748 bio_out, key, cipher, in PHP_FUNCTION()
4758 bio_mem_len = BIO_get_mem_data(bio_out, &bio_mem_ptr); in PHP_FUNCTION()
4766 BIO_free(bio_out); in PHP_FUNCTION()
5573 BIO * bio_in = NULL, * bio_out = NULL; in PHP_FUNCTION() local
5628 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
5629 if (bio_out && PEM_write_bio_X509(bio_out, ca)) { in PHP_FUNCTION()
5631 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
5634 BIO_free(bio_out); in PHP_FUNCTION()
5643 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
5644 if (bio_out && PEM_write_bio_X509_CRL(bio_out, crl)) { in PHP_FUNCTION()
5646 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
5649 BIO_free(bio_out); in PHP_FUNCTION()
6221 BIO * bio_in = NULL, * bio_out = NULL; in PHP_FUNCTION() local
6269 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
6270 if (bio_out && PEM_write_bio_X509(bio_out, ca)) { in PHP_FUNCTION()
6272 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
6275 BIO_free(bio_out); in PHP_FUNCTION()
6284 bio_out = BIO_new(BIO_s_mem()); in PHP_FUNCTION()
6285 if (bio_out && PEM_write_bio_X509_CRL(bio_out, crl)) { in PHP_FUNCTION()
6287 BIO_get_mem_ptr(bio_out, &bio_buf); in PHP_FUNCTION()
6290 BIO_free(bio_out); in PHP_FUNCTION()