1asn1_parser2tree(3)                libtasn1                asn1_parser2tree(3)
2
3
4

NAME

6       asn1_parser2tree - API function
7

SYNOPSIS

9       #include <libtasn1.h>
10
11       int asn1_parser2tree(const char * file, asn1_node * definitions, char *
12       error_desc);
13

ARGUMENTS

15       const char * file
16                   specify the path and the name of file that  contains  ASN.1
17                   declarations.
18
19       asn1_node * definitions
20                   return  the  pointer  to  the structure created from "file"
21                   ASN.1 declarations.
22
23       char * error_desc
24                   return the error description or an empty string if success.
25

DESCRIPTION

27       Function used to start the parse  algorithm.   Creates  the  structures
28       needed to manage the definitions included in  file file.
29

RETURNS

31       ASN1_SUCCESS  if  the file has a correct syntax and every identifier is
32       known,    ASN1_ELEMENT_NOT_EMPTY    if     definitions    not     NULL,
33       ASN1_FILE_NOT_FOUND   if  an  error  occurred  while  opening   file  ,
34       ASN1_SYNTAX_ERROR  if  the  syntax   is   not   correct,   ASN1_IDENTI‐
35       FIER_NOT_FOUND  if  in  the  file  there  is  an identifier that is not
36       defined, ASN1_NAME_TOO_LONG if in the file there is an identifier  with
37       more than ASN1_MAX_NAME_SIZE characters.
38
40       Copyright © 2006-2015 Free Software Foundation, Inc..
41       Copying  and  distribution  of this file, with or without modification,
42       are permitted in any medium  without  royalty  provided  the  copyright
43       notice and this notice are preserved.
44

SEE ALSO

46       The  full documentation for libtasn1 is maintained as a Texinfo manual.
47       If the info and libtasn1 programs are properly installed at your  site,
48       the command
49
50              info libtasn1
51
52       should  give  you access to the complete manual.  As an alternative you
53       may obtain the manual from:
54
55              http://www.gnu.org/software/libtasn1/manual/
56
57libtasn1                            4.16.0                 asn1_parser2tree(3)
Impressum