[#ASN1_OBJECT_create]
= ASN1&lowbar;OBJECT&lowbar;create
:mrdocs:

Allocate a dynamically owned ASN1&lowbar;OBJECT from DER content and optional names&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ASN1_OBJECT.adoc[ASN1&lowbar;OBJECT]*
ASN1&lowbar;OBJECT&lowbar;create(
    int nid,
    unsigned char* data,
    int len,
    char const* sn,
    char const* ln);
----

== Return Value

New ASN1&lowbar;OBJECT, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *nid*
| NID to assign (or NID&lowbar;undef for an unnamed object)&period;
| *data*
| DER OID content octets (ownership transferred to the object on success)&period;
| *len*
| Length of `data` in bytes&period;
| *sn*
| Optional short name string (ownership transferred), or NULL&period;
| *ln*
| Optional long name string (ownership transferred), or NULL&period;
|===


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