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

Name

Description

p7

PKCS#7 encrypted‐data content info wrapping a PKCS12_SAFEBAGS sequence.

pass

Passphrase for decryption.

passlen

Length of pass, or ‐1 to use strlen().

Created with MrDocs