1ASN1_OBJECT_new(3)                  OpenSSL                 ASN1_OBJECT_new(3)
2
3
4

NAME

6       ASN1_OBJECT_new, ASN1_OBJECT_free, - object allocation functions
7

SYNOPSIS

9        ASN1_OBJECT *ASN1_OBJECT_new(void);
10        void ASN1_OBJECT_free(ASN1_OBJECT *a);
11

DESCRIPTION

13       The ASN1_OBJECT allocation routines, allocate and free an ASN1_OBJECT
14       structure, which represents an ASN1 OBJECT IDENTIFIER.
15
16       ASN1_OBJECT_new() allocates and initializes a ASN1_OBJECT structure.
17
18       ASN1_OBJECT_free() frees up the ASN1_OBJECT structure a.
19

NOTES

21       Although ASN1_OBJECT_new() allocates a new ASN1_OBJECT structure it is
22       almost never used in applications. The ASN1 object utility functions
23       such as OBJ_nid2obj() are used instead.
24

RETURN VALUES

26       If the allocation fails, ASN1_OBJECT_new() returns NULL and sets an
27       error code that can be obtained by ERR_get_error(3).  Otherwise it
28       returns a pointer to the newly allocated structure.
29
30       ASN1_OBJECT_free() returns no value.
31

SEE ALSO

33       ERR_get_error(3), d2i_ASN1_OBJECT(3)
34

HISTORY

36       ASN1_OBJECT_new() and ASN1_OBJECT_free() are available in all versions
37       of SSLeay and OpenSSL.
38
39
40
410.9.8b                            2002-10-09                ASN1_OBJECT_new(3)
Impressum