---
name: "libressl-PEM_write_bio_PKCS7_stream"
section: "3"
platform: "linux"
package: "libressl"
version: "4.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libressl-PEM_write_bio_PKCS7_stream"
---

# libressl-PEM\_write\_bio\_PKCS7\_stream(3)

output PKCS7 structure in PEM format

## NAME

**PEM\_write\_bio\_PKCS7\_stream** – output PKCS7 structure in PEM format

## SYNOPSIS

Crypto Library (libcrypto, -lcrypto)

**#include \<openssl/pkcs7.h\>**

*int*\

**PEM\_write\_bio\_PKCS7\_stream**(*BIO \*out*, *PKCS7 \*p7*, *BIO \*data*, *int flags*);

## DESCRIPTION

**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).

## SEE ALSO

BIO\_new(3), i2d\_PKCS7\_bio\_stream(3), PEM\_write\_PKCS7(3), PKCS7\_final(3), PKCS7\_new(3), SMIME\_write\_PKCS7(3)

## HISTORY

**PEM\_write\_bio\_PKCS7\_stream**() first appeared in OpenSSL 1.0.0 and has been available since OpenBSD 4.9.
