PKCS12_unpack_p7encdata

Unpack safeBags from a PKCS#7 encrypted-data ContentInfo.

Synopsis

Declared in <openssl/pkcs12.h>

stack_st_PKCS12_SAFEBAG*
PKCS12_unpack_p7encdata(
    PKCS7* p7,
    char const* pass,
    int passlen);

Return Value

Stack of safeBags, or NULL if p7 is not encrypted-data or on decode error.

Parameters

NameDescription
p7PKCS#7 encrypted-data content info wrapping a PKCS12_SAFEBAGS sequence.
passPassphrase for decryption.
passlenLength of pass, or -1 to use strlen().