1asn1_create_element(3) libtasn1 asn1_create_element(3)
2
3
4
6 asn1_create_element - API function
7
9 #include <libtasn1.h>
10
11 int asn1_create_element(asn1_node_const definitions, const char *
12 source_name, asn1_node * element);
13
15 asn1_node_const definitions
16 pointer to the structure returned by "parser_asn1" function
17
18 const char * source_name
19 the name of the type of the new structure (must be inside
20 p_structure).
21
22 asn1_node * element
23 pointer to the structure created.
24
26 Creates a structure of type source_name . Example using "pkix.asn":
27
28 rc = asn1_create_element(cert_def, "PKIX1.Certificate", certptr);
29
31 ASN1_SUCCESS if creation OK, ASN1_ELEMENT_NOT_FOUND if
32 source_name is not known.
33
35 Copyright © 2006-2021 Free Software Foundation, Inc..
36 Copying and distribution of this file, with or without modification,
37 are permitted in any medium without royalty provided the copyright no‐
38 tice and this notice are preserved.
39
41 The full documentation for libtasn1 is maintained as a Texinfo manual.
42 If the info and libtasn1 programs are properly installed at your site,
43 the command
44
45 info libtasn1
46
47 should give you access to the complete manual. As an alternative you
48 may obtain the manual from:
49
50 https://www.gnu.org/software/libtasn1/manual/
51
52libtasn1 4.18.0 asn1_create_element(3)