![]() | ![]() | |||||||||||||||||
| ||||||||||||||||||
| PKCS7_decrypt(3)
NAMEPKCS7_decrypt - decrypt content from a PKCS#7 envelopedData structure
SYNOPSIS#include <openssl/pkcs7.h> int PKCS7_decrypt(PKCS7 *p7, EVP_PKEY *pkey, X509 *cert, BIO *data, int flags);
DESCRIPTION
NOTES
Although the recipients certificate is not needed to decrypt the data it is needed to locate the appropriate (of possible several) recipients in the PKCS#7 structure. The following flags can be passed in the flags parameter. If the PKCS7_TEXT flag is set MIME headers for type text/plain are deleted from the content. If the content is not of type text/plain then an error is returned.
RETURN VALUES
BUGS
The lack of single pass processing and need to hold all data in memory as
mentioned in
SEE ALSOERR_get_error(3), PKCS7_encrypt(3)
HISTORY
| |||||||||||||||||