[#PKCS7_add_recipient_info]
= PKCS7&lowbar;add&lowbar;recipient&lowbar;info
:mrdocs:

Add a recipient info structure to a PKCS&num;7 enveloped&hyphen;data object&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS7&lowbar;add&lowbar;recipient&lowbar;info(
    xref:PKCS7.adoc[PKCS7]* p7,
    xref:PKCS7_RECIP_INFO.adoc[PKCS7&lowbar;RECIP&lowbar;INFO]* ri);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p7*
| PKCS&num;7 object of type enveloped or signed&hyphen;and&hyphen;enveloped data&period;
| *ri*
| Recipient info to append&semi; on success ownership transfers to `p7&period;`
|===


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