[#OBJ_txt2obj]
= OBJ&lowbar;txt2obj
:mrdocs:

Parse a textual OID (dot notation or name) into an ASN1&lowbar;OBJECT&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ASN1_OBJECT.adoc[ASN1&lowbar;OBJECT]*
OBJ&lowbar;txt2obj(
    char const* s,
    int no&lowbar;name);
----

== Return Value

Newly allocated ASN1&lowbar;OBJECT, or NULL on error&semi; free with ASN1&lowbar;OBJECT&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| OID text such as &quot;1&period;2&period;840&period;113549&period;1&period;1&period;1&quot; or &quot;sha256WithRSAEncryption&quot;&period;
| *no&lowbar;name*
| When non&hyphen;zero, only numeric OID forms are accepted (names are rejected)&period;
|===


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