PEM_write_bio_PKCS7_stream

Write a PKCS#7 structure as PEM, streaming content from in when required.

Synopsis

Declared in <openssl/pkcs7.h>

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

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
outBIO that receives the PEM-encoded PKCS#7.
p7PKCS#7 object to serialise.
inOptional content BIO for streaming signed/enveloped data, or NULL.
flagsSMIME_* / PKCS7_* streaming and encoding flags.