[#CMS_set1_eContentType]
= CMS&lowbar;set1&lowbar;eContentType
:mrdocs:

Set the embedded eContentType OID of a CMS ContentInfo (copied)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CMS&lowbar;set1&lowbar;eContentType(
    xref:CMS_ContentInfo.adoc[CMS&lowbar;ContentInfo]* cms,
    xref:ASN1_OBJECT.adoc[ASN1&lowbar;OBJECT] const* oid);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cms*
| ContentInfo created with CMS&lowbar;PARTIAL, before it is finalized&period;
| *oid*
| Embedded content&hyphen;type object identifier to copy into `cms&period;`
|===


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