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

NAME

6       asn1_parser2array  - function that generates a C structure from an ASN1
7       file
8

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

31       Creates  a  file containing a C vector to use to manage the definitions
32       included in *INPUTFILENAME file. If  *INPUTFILENAME  is  "/aa/bb/xx.yy"
33       and OUTPUTFILENAME is NULL, the file created is "/aa/bb/xx_asn1_tab.c".
34       If VECTORNAME is NULL the vector name will be "xx_asn1_tab".
35

RETURNS

ASN1_SUCCESS

38       The file has a correct syntax and every identifier is known.
39

ASN1_FILE_NOT_FOUND

41       An error occured while opening FILE_NAME.
42

ASN1_SYNTAX_ERROR

44       The syntax is not correct.
45

ASN1_IDENTIFIER_NOT_FOUND

47       In the file there is an identifier that is not defined.
48

ASN1_NAME_TOO_LONG

50       In the file there is an identifier whith more  than  ASN1_MAX_NAME_SIZE
51       characters.
52
54       Copyright © 2006, 2007, 2008, 2009 Free Software Foundation, Inc..
55       Copying  and  distribution  of this file, with or without modification,
56       are permitted in any medium  without  royalty  provided  the  copyright
57       notice and this notice are preserved.
58

SEE ALSO

60       The  full documentation for libtasn1 is maintained as a Texinfo manual.
61       If the info and libtasn1 programs are properly installed at your  site,
62       the command
63
64              info libtasn1
65
66       should give you access to the complete manual.
67
68
69
70libtasn1                              2.3                 asn1_parser2array(3)
Impressum