[#CMS_decrypt_set1_password]
= CMS&lowbar;decrypt&lowbar;set1&lowbar;password
:mrdocs:

Decrypt CMS PasswordRecipientInfo key material and store it for a later CMS&lowbar;decrypt()&period;

== Synopsis

Declared in `&lt;openssl&sol;cms&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CMS&lowbar;decrypt&lowbar;set1&lowbar;password(
    xref:CMS_ContentInfo.adoc[CMS&lowbar;ContentInfo]* cms,
    unsigned char* pass,
    ssize&lowbar;t passlen);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cms*
| Enveloped ContentInfo containing a password recipient&period;
| *pass*
| Password bytes used to derive the key&hyphen;encryption key&period;
| *passlen*
| Length of `pass` in octets, or a negative value if `pass` is a NUL&hyphen;terminated string&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
