[#CMS_RecipientInfo_kari_get0_alg]
= CMS&lowbar;RecipientInfo&lowbar;kari&lowbar;get0&lowbar;alg
:mrdocs:

Get the key&hyphen;encryption algorithm and optional UKM from a key&hyphen;agreement recipient info&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CMS&lowbar;RecipientInfo&lowbar;kari&lowbar;get0&lowbar;alg(
    xref:CMS_RecipientInfo.adoc[CMS&lowbar;RecipientInfo]* ri,
    xref:X509_ALGOR.adoc[X509&lowbar;ALGOR]** palg,
    xref:ASN1_OCTET_STRING.adoc[ASN1&lowbar;OCTET&lowbar;STRING]** pukm);
----

== Return Value

1 on success, or 0 if `ri` is not a key&hyphen;agreement recipient info&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ri*
| Recipient info of type CMS&lowbar;RECIPINFO&lowbar;AGREE&period;
| *palg*
| Receives the keyEncryptionAlgorithm, or NULL if not requested&period;
| *pukm*
| Receives the user keying material (UKM), or NULL if not requested or absent&period;
|===


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