[#OSSL_CMP_CTX_set1_recipient]
= OSSL&lowbar;CMP&lowbar;CTX&lowbar;set1&lowbar;recipient
:mrdocs:

Set the intended recipient DN placed in outgoing CMP PKIHeader fields&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;CMP&lowbar;CTX&lowbar;set1&lowbar;recipient(
    xref:OSSL_CMP_CTX.adoc[OSSL&lowbar;CMP&lowbar;CTX]* ctx,
    xref:X509_NAME.adoc[X509&lowbar;NAME] const* name);
----

== Return Value

1 on success, 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| CMP context&period;
| *name*
| Recipient X509&lowbar;NAME, or NULL to clear&period;
|===


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