[#PKCS7_set0_type_other]
= PKCS7&lowbar;set0&lowbar;type&lowbar;other
:mrdocs:

Set a PKCS&num;7 content type to an ASN&period;1 OTHER content value, transferring ownership of `other&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS7&lowbar;set0&lowbar;type&lowbar;other(
    xref:PKCS7.adoc[PKCS7]* p7,
    int type,
    xref:ASN1_TYPE.adoc[ASN1&lowbar;TYPE]* other);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p7*
| PKCS&num;7 structure to update&period;
| *type*
| NID of the content type&period;
| *other*
| ASN&period;1 value describing the content&semi; ownership transfers to `p7` on success&period;
|===


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