libressl-PEM_write_bio_PKCS7_stream(3)

libressl-PEM_write_bio_PKCS7_stream3

Output pkcs7 structure in pem format

Usage

Crypto Library (libcrypto, -lcrypto)

#include <openssl/pkcs7.h>

int

PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *data, int flags);

Overview

PEM_write_bio_PKCS7_stream() outputs a PKCS7 structure in PEM format.

It is otherwise identical to the function SMIME_write_PKCS7(3).

This function is effectively a version of PEM_write_bio_PKCS7(3) supporting streaming.

Return values

Upon successful completion, 1 is returned; otherwise 0 is returned and an error code can be retrieved with ERR_get_error(3).

History

PEM_write_bio_PKCS7_stream() first appeared in OpenSSL 1.0.0 and has been available since OpenBSD 4.9.

From libressl 4.4.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.