[#CMS_RecipientEncryptedKey_get0_id]
= CMS&lowbar;RecipientEncryptedKey&lowbar;get0&lowbar;id
:mrdocs:

Extract KeyAgreeRecipientIdentifier fields from a RecipientEncryptedKey&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CMS&lowbar;RecipientEncryptedKey&lowbar;get0&lowbar;id(
    xref:CMS_RecipientEncryptedKey.adoc[CMS&lowbar;RecipientEncryptedKey]* rek,
    xref:ASN1_OCTET_STRING.adoc[ASN1&lowbar;OCTET&lowbar;STRING]** keyid,
    xref:ASN1_GENERALIZEDTIME.adoc[ASN1&lowbar;GENERALIZEDTIME]** tm,
    xref:CMS_OtherKeyAttribute.adoc[CMS&lowbar;OtherKeyAttribute]** other,
    xref:X509_NAME.adoc[X509&lowbar;NAME]** issuer,
    xref:ASN1_INTEGER.adoc[ASN1&lowbar;INTEGER]** sno);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rek*
| RecipientEncryptedKey to query&period;
| *keyid*
| Receives subjectKeyIdentifier when that form is used, or NULL to skip&period;
| *tm*
| Receives date when present with subjectKeyIdentifier, or NULL to skip&period;
| *other*
| Receives otherKeyAttribute when present, or NULL to skip&period;
| *issuer*
| Receives issuer name when IssuerAndSerialNumber is used, or NULL to skip&period;
| *sno*
| Receives serial number when IssuerAndSerialNumber is used, or NULL to skip&period;
|===


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