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

Name

Description

p7

Partially constructed PKCS#7 object (for example from PKCS7_sign() with PKCS7_PARTIAL).

data

BIO supplying the content to process, or NULL when content is already embedded.

flags

PKCS7_* processing flags such as PKCS7_STREAM or PKCS7_DETACHED.

Created with MrDocs