[#CMS_RecipientInfo_get0_pkey_ctx]
= CMS&lowbar;RecipientInfo&lowbar;get0&lowbar;pkey&lowbar;ctx
:mrdocs:

Return the EVP&lowbar;PKEY&lowbar;CTX used for key transport or key agreement on a recipient info&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]*
CMS&lowbar;RecipientInfo&lowbar;get0&lowbar;pkey&lowbar;ctx(xref:CMS_RecipientInfo.adoc[CMS&lowbar;RecipientInfo]* ri);
----

== Return Value

Internal EVP&lowbar;PKEY&lowbar;CTX pointer (do not free), or NULL if none &sol; wrong type&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ri*
| Recipient info of type CMS&lowbar;RECIPINFO&lowbar;TRANS or CMS&lowbar;RECIPINFO&lowbar;AGREE&period;
|===


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