PKCS12_add_safes

Create a PKCS#12 structure from a stack of PKCS#7 authSafes contentInfos.

Synopsis

Declared in <openssl/pkcs12.h>

PKCS12*
PKCS12_add_safes(
    stack_st_PKCS7* safes,
    int p7_nid);

Return Value

New PKCS#12 structure, or NULL on error.

Parameters

NameDescription
safesStack of PKCS#7 content infos to embed.
p7_nidNID of the outer PKCS#7 content type (currently NID_pkcs7_data only).