i2d_PKCS7_bio_stream(3ssl)

i2d_PKCS7_bio_stream3ssl

Output pkcs7 structure in ber format

Usage

 #include <openssl/pkcs7.h>
 int i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *data, int flags);

Overview

i2d_PKCS7_bio_stream() outputs a PKCS7 structure in BER format.

It is otherwise identical to the function SMIME_write_PKCS7().

Notes

This function is effectively a version of the d2i_PKCS7_bio() supporting streaming.

Return values

i2d_PKCS7_bio_stream() returns 1 for success or 0 for failure.

Releases

8 releases since Debian 7 (Wheezy); the text changed 7 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13
  8. Arch

Bugs

The prefix "i2d" is arguably wrong because the function outputs BER format.

History

The i2d_PKCS7_bio_stream() function was added in OpenSSL 1.0.0.

From openssl 3.6.5-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.