Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
OBJ_new_nid, OBJ_add_object, OBJ_create, OBJ_create_objects, OBJ_cleanup — modify the table of ASN.1 object identifiersSYNOPSIS
#include <openssl/objects.h>OBJ_new_nid(int increment);
OBJ_add_object(const ASN1_OBJECT *object);
OBJ_create(const char *oid, const char *sn, const char *ln);
OBJ_create_objects(BIO *in_bio);
OBJ_cleanup(void);
DESCRIPTION
OBJ_new_nid() returns the smallest currently unassigned ASN.1 numeric object identifier (NID) and reserves increment consecutive NIDs starting with it. Passing an argument of 1 is usually recommended. The return value can be assigned to a new object by passing it as the nid argument to ASN1_OBJECT_create(3) and by passing the resulting object to OBJ_add_object().oid sn ln
RETURN VALUES
OBJ_new_nid() returns the new NID.EXAMPLES
Create a new NID and initialize an object from it:int new_nid; ASN1_OBJECT *obj; new_nid = OBJ_create("1.2.3.4", "NewOID", "New Object Identifier"); obj = OBJ_nid2obj(new_nid);