PKCS7_final

Finalize a PKCS#7 structure by digesting content from a BIO and completing signatures or encryption.

Synopsis

Declared in <openssl/pkcs7.h>

int
PKCS7_final(
    PKCS7* p7,
    BIO* data,
    int flags);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
p7Partially constructed PKCS#7 object (for example from PKCS7_sign() with PKCS7_PARTIAL).
dataBIO supplying the content to process, or NULL when content is already embedded.
flagsPKCS7_* processing flags such as PKCS7_STREAM or PKCS7_DETACHED.