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        #include <openssl/asn1.h>
10
11        ASN1_OBJECT *ASN1_OBJECT_new(void);
12        void ASN1_OBJECT_free(ASN1_OBJECT *a);
13

DESCRIPTION

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

NOTES

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

RETURN VALUES

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

SEE ALSO

35       ERR_get_error(3), d2i_ASN1_OBJECT(3)
36

HISTORY

38       ASN1_OBJECT_new() and ASN1_OBJECT_free() are available in all versions
39       of SSLeay and OpenSSL.
40
41
42
431.0.1e                            2013-02-11                ASN1_OBJECT_new(3)
Impressum