<b>NID_undef</b> on error.</p>

<p>OBJ_add_sigid() returns 1 on success or 0 on error.</p>

<p>i2t_ASN1_OBJECT() an OBJ_obj2txt() return -1 on error. On success, they return the length of the string written to <i>buf</i> if <i>buf</i> is not NULL and <i>buf_len</i> is big enough, otherwise the total string length. Note that this does not count the trailing NUL character.</p>

<h1 id="EXAMPLES">EXAMPLES</h1>

<p>Create an object for <b>commonName</b>:</p>

<pre><code>ASN1_OBJECT *o = OBJ_nid2obj(NID_commonNa