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
ASN1_OBJECT_new, ASN1_OBJECT_create, ASN1_OBJECT_free — ASN.1 object identifiersSYNOPSIS
#include <openssl/asn1.h>ASN1_OBJECT_new(void);
ASN1_OBJECT_create(int nid, unsigned char *content, int len, const char *short_name, const char *long_name);
ASN1_OBJECT_free(ASN1_OBJECT *a);
DESCRIPTION
ASN1_OBJECT_new() allocates and initializes an empty ASN1_OBJECT object, representing an ASN.1 OBJECT IDENTIFIER. It can hold a short name, a long name, a numeric identifier (NID), and a sequence of integers identifying a node in the International Object Identifier tree as specified in ITU-T recommendation X.660. The new object is marked as dynamically allocated.RETURN VALUES
ASN1_OBJECT_new() and ASN1_OBJECT_create() return a pointer to the new object or NULL if memory allocation fails,ERRORS
After failure of ASN1_OBJECT_new() or ASN1_OBJECT_create(), the following diagnostic can be retrieved with ERR_get_error(3), ERR_GET_REASON(3), and ERR_reason_error_string(3):- ERR_R_MALLOC_FAILURE “malloc failure”
- Memory allocation failed.
- ERR_R_ASN1_LIB “ASN1 lib”
- Memory allocation failed.