[#CMS_RecipientInfo_ktri_get0_algs]
= CMS&lowbar;RecipientInfo&lowbar;ktri&lowbar;get0&lowbar;algs
:mrdocs:

Retrieve key&hyphen;transport algorithms and related objects from a RecipientInfo&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CMS&lowbar;RecipientInfo&lowbar;ktri&lowbar;get0&lowbar;algs(
    xref:CMS_RecipientInfo.adoc[CMS&lowbar;RecipientInfo]* ri,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]** pk,
    xref:X509.adoc[X509]** recip,
    xref:X509_ALGOR.adoc[X509&lowbar;ALGOR]** palg);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ri*
| Recipient info of type CMS&lowbar;RECIPINFO&lowbar;TRANS&period;
| *pk*
| Receives the recipient public key if available, or NULL if not requested&period;
| *recip*
| Receives the recipient certificate if available, or NULL if not requested&period;
| *palg*
| Receives the key&hyphen;encryption algorithm, or NULL if not requested&period;
|===


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