me);</code></pre>

<p>Check if an object is <b>commonName</b></p>

<pre><code>if (OBJ_obj2nid(obj) == NID_commonName)
    /* Do something */</code></pre>

<p>Create a new NID and initialize an object from it:</p>

<pre><code>int new_nid = OBJ_create(&quot;1.2.3.4&quot;, &quot;NewOID&quot;, &quot;New Object Identifier&quot;);
ASN1_OBJECT *obj = OBJ_nid2obj(new_nid);</code></pre>

<p>Create a new object directly:</p>

<pre><code>obj = OBJ_txt2obj(&quot;1.2.3.4&quot;, 1);</code></pre>

<h1 id="SEE-ALSO">SEE AL