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 an ASN1_OBJECT structure.
19
20       ASN1_OBJECT_free() frees up the ASN1_OBJECT structure a.  If a is NULL,
21       nothing is done.
22

NOTES

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

RETURN VALUES

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

SEE ALSO

36       ERR_get_error(3), d2i_ASN1_OBJECT(3)
37
39       Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.
40
41       Licensed under the OpenSSL license (the "License").  You may not use
42       this file except in compliance with the License.  You can obtain a copy
43       in the file LICENSE in the source distribution or at
44       <https://www.openssl.org/source/license.html>.
45
46
47
481.1.1q                            2023-02-06                ASN1_OBJECT_NEW(3)
Impressum