[#PKCS7_RECIP_INFO_set]
= PKCS7&lowbar;RECIP&lowbar;INFO&lowbar;set
:mrdocs:

Populate a PKCS&num;7 recipient info from a recipient certificate&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS7&lowbar;RECIP&lowbar;INFO&lowbar;set(
    xref:PKCS7_RECIP_INFO.adoc[PKCS7&lowbar;RECIP&lowbar;INFO]* p7i,
    xref:X509.adoc[X509]* x509);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p7i*
| RecipientInfo structure to fill (issuer&sol;serial and encrypted&hyphen;key algorithm)&period;
| *x509*
| Recipient X&period;509 certificate whose public key encrypts the content&hyphen;encryption key&period;
|===


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