1asn1_parser2array(3) libtasn1 asn1_parser2array(3)
2
3
4
6 asn1_parser2array - API function
7
9 #include <libtasn1.h>
10
11 int asn1_parser2array(const char * inputFileName, const char * output‐
12 FileName, const char * vectorName, char * errorDescription);
13
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 * errorDescription
27 return the error description or an empty string if success.
28
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 outputFile‐
33 Name is NULL, the file created is "/aa/bb/xx_asn1_tab.c". If vector‐
34 Name is NULL the vector name will be "xx_asn1_tab".
35
38 Copyright © 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
39 Inc..
40 Copying and distribution of this file, with or without modification,
41 are permitted in any medium without royalty provided the copyright
42 notice and this notice are preserved.
43
45 The full documentation for libtasn1 is maintained as a Texinfo manual.
46 If the info and libtasn1 programs are properly installed at your site,
47 the command
48
49 info libtasn1
50
51 should give you access to the complete manual.
52
53
54
55libtasn1 2.7 asn1_parser2array(3)