OBJ_create

Register a new ASN.1 object identifier with short and long names.

Synopsis

Declared in <openssl/objects.h>

int
OBJ_create(
    char const* oid,
    char const* sn,
    char const* ln);

Return Value

New NID on success, or NID_undef on error.

Parameters

NameDescription
oidNumeric OID string (for example "1.2.3.4").
snShort name to associate with the OID.
lnLong name to associate with the OID.