[#CMS_RecipientInfo_kari_get0_ctx]
= CMS&lowbar;RecipientInfo&lowbar;kari&lowbar;get0&lowbar;ctx
:mrdocs:

Return the key&hyphen;wrap cipher context associated with a key&hyphen;agreement RecipientInfo&period;

== Synopsis

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

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

== Return Value

Internal EVP&lowbar;CIPHER&lowbar;CTX used for CEK wrap&sol;unwrap (do not free), or NULL if `ri` is not KARI&period;

== Parameters

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


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