1asn1_parser2array(3)               libtasn1               asn1_parser2array(3)
2
3
4

NAME

6       asn1_parser2array - API function
7

SYNOPSIS

9       #include <libtasn1.h>
10
11       int  asn1_parser2array(const char * inputFileName, const char * output‐
12       FileName, const char * vectorName, char * error_desc);
13

ARGUMENTS

15       const char * inputFileName
16                   specify the path and the name of file that  contains  ASN.1
17                   declarations.
18
19       const char * outputFileName
20                   specify the path and the name of file that will contain the
21                   C vector definition.
22
23       const char * vectorName
24                   specify the name of the C vector.
25
26       char * error_desc
27                   return the error description or an empty string if success.
28

DESCRIPTION

30       Function that generates a C structure from an  ASN1  file.   Creates  a
31       file containing a C vector to use to manage the definitions included in
32       inputFileName file. If  inputFileName is  "/aa/bb/xx.yy"  and   output‐
33       FileName is NULL, the file created is "/aa/bb/xx_asn1_tab.c".  If  vec‐
34       torName is NULL the vector name will be "xx_asn1_tab".
35

RETURNS

37       ASN1_SUCCESS if the file has a correct syntax and every  identifier  is
38       known,  ASN1_FILE_NOT_FOUND  if an error occurred while opening  input‐
39       FileName , ASN1_SYNTAX_ERROR if the syntax is not correct, ASN1_IDENTI‐
40       FIER_NOT_FOUND  if  in  the  file  there  is  an identifier that is not
41       defined, ASN1_NAME_TOO_LONG if in the file there is an identifier  with
42       more than ASN1_MAX_NAME_SIZE characters.
43
45       Copyright © 2006-2015 Free Software Foundation, Inc..
46       Copying  and  distribution  of this file, with or without modification,
47       are permitted in any medium  without  royalty  provided  the  copyright
48       notice and this notice are preserved.
49

SEE ALSO

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