Unpack safeBags from a PKCS#7 encrypted-data ContentInfo.
Declared in <openssl/pkcs12.h>
stack_st_PKCS12_SAFEBAG*
PKCS12_unpack_p7encdata(
PKCS7* p7,
char const* pass,
int passlen);
Stack of safeBags, or NULL if p7 is not encrypted-data or on decode error.
| 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(). |