BIO_new_PKCS7

Create a filter BIO that finalises and writes streaming PKCS#7 ASN.1 to out.

Synopsis

Declared in <openssl/pkcs7.h>

BIO*
BIO_new_PKCS7(
    BIO* out,
    PKCS7* p7);

Return Value

New BIO filter, or NULL on error; free with BIO_free.

Parameters

NameDescription
outDownstream BIO that receives the encoded PKCS#7.
p7Partial PKCS#7 structure created with PKCS7_STREAM (or similar streaming flags).