PKCS12_init_ex

Create an empty PKCS#12 structure with a library context.

Synopsis

Declared in <openssl/pkcs12.h>

PKCS12*
PKCS12_init_ex(
    int mode,
    OSSL_LIB_CTX* ctx,
    char const* propq);

Return Value

New PKCS#12 structure, or NULL on error.

Parameters

NameDescription
modeNID of the outer PKCS#7 content type wrapping authSafes (currently NID_pkcs7_data only).
ctxLibrary context for algorithm fetching, or NULL for default.
propqProperty query for algorithm fetching, or NULL.