[#CMS_decrypt_set1_password] = CMS_decrypt_set1_password :mrdocs: Decrypt CMS PasswordRecipientInfo key material and store it for a later CMS_decrypt(). == Synopsis Declared in `<openssl/cms.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int CMS_decrypt_set1_password( xref:CMS_ContentInfo.adoc[CMS_ContentInfo]* cms, unsigned char* pass, ssize_t passlen); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *cms* | Enveloped ContentInfo containing a password recipient. | *pass* | Password bytes used to derive the key‐encryption key. | *passlen* | Length of `pass` in octets, or a negative value if `pass` is a NUL‐terminated string. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#