[#PKCS7_set_cipher] = PKCS7_set_cipher :mrdocs: Set the content‐encryption cipher on an enveloped or encrypted PKCS#7 structure. == Synopsis Declared in `<openssl/pkcs7.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int PKCS7_set_cipher( xref:PKCS7.adoc[PKCS7]* p7, xref:EVP_CIPHER-07.adoc[EVP_CIPHER] const* cipher); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *p7* | PKCS#7 EnvelopedData, SignedAndEnvelopedData, or EncryptedData object. | *cipher* | Symmetric cipher used to encrypt the content (must support ASN.1 parameters). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#