blob: 23c348c838caf37810e639f5a5ed42b7f39ce408 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
@subheading asn1_create_element
@anchor{asn1_create_element}
@deftypefun {int} {asn1_create_element} (asn1_node_const @var{definitions}, const char * @var{source_name}, asn1_node * @var{element})
@var{definitions}: pointer to the structure returned by "parser_asn1" function
@var{source_name}: the name of the type of the new structure (must be
inside p_structure).
@var{element}: pointer to the structure created.
Creates a structure of type @code{source_name} . Example using
"pkix.asn":
rc = asn1_create_element(cert_def, "PKIX1.Certificate", certptr);
@strong{Returns:} @code{ASN1_SUCCESS} if creation OK, @code{ASN1_ELEMENT_NOT_FOUND} if
@code{source_name} is not known.
@end deftypefun
|