Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
NAME
OBJ_nid2obj, OBJ_nid2ln, OBJ_nid2sn, OBJ_obj2nid, OBJ_ln2nid, OBJ_sn2nid, OBJ_txt2nid, OBJ_txt2obj, OBJ_obj2txt, OBJ_cmp, OBJ_dup, i2t_ASN1_OBJECT, i2a_ASN1_OBJECT — inspect and create ASN.1 object identifiersSYNOPSIS
#include <openssl/objects.h>OBJ_nid2obj(int nid);
OBJ_nid2ln(int nid);
OBJ_nid2sn(int nid);
OBJ_obj2nid(const ASN1_OBJECT *object);
OBJ_ln2nid(const char *ln);
OBJ_sn2nid(const char *sn);
OBJ_txt2nid(const char *s);
OBJ_txt2obj(const char *s, int no_name);
OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *object, int no_name);
OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b);
OBJ_dup(const ASN1_OBJECT *object);
i2t_ASN1_OBJECT(char *buf, int buf_len, const ASN1_OBJECT *object);
i2a_ASN1_OBJECT(BIO *out_bio, const ASN1_OBJECT *object);
DESCRIPTION
The ASN.1 object utility functions process ASN1_OBJECT structures, in the following called “objects”. An object represents an ASN.1 OBJECT IDENTIFIER (OID). The library maintains an internal global table of objects. Many of these objects are built into the library and contained in the global table by default. The application program can add additional objects to the global table by using functions documented in the OBJ_create(3) manual page. Consequently, there are three classes of objects: built-in table objects, user-defined table objects, and non-table objects.RETURN VALUES
Application code should treat all returned values — objects, names, and NIDs — as constants.EXAMPLES
Retrieve the object for commonName:ASN1_OBJECT *object; object = OBJ_nid2obj(NID_commonName);
if (OBJ_obj2nid(object) == NID_commonName) /* Do something */
object = OBJ_txt2obj("1.2.3.4", 1);