PKCS7_new_ex

Allocate an empty PKCS#7 structure with an explicit library context and property query.

Synopsis

Declared in <openssl/pkcs7.h>

PKCS7*
PKCS7_new_ex(
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

New PKCS7, or NULL on allocation failure; free with PKCS7_free.

Parameters

NameDescription
libctxLibrary context for algorithm fetches, or NULL for the default.
propqProperty query for algorithm fetches, or NULL.