diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/asn1Coding.c | 50 | ||||
-rw-r--r-- | src/asn1Decoding.c | 43 | ||||
-rw-r--r-- | src/asn1Parser.c | 50 |
3 files changed, 76 insertions, 67 deletions
diff --git a/src/asn1Coding.c b/src/asn1Coding.c index f195c07..5b004c6 100644 --- a/src/asn1Coding.c +++ b/src/asn1Coding.c @@ -39,33 +39,35 @@ #include <getopt.h> #endif -char version_man[] = "asn1Coding (GNU libtasn1) " VERSION; - -char help_man[] = "asn1Coding generates a DER encoding from a file\n" - "with ASN1 definitions and another one with assignments.\n" - "\n" - "Usage: asn1Coding [options] <file1> <file2>\n" - " <file1> file with ASN1 definitions.\n" - " <file2> file with assignments.\n" - "\n" +char version_man[] = "asn1Coding (GNU libtasn1) " VERSION "\n" + "Written by Fabio Fiorina." + "\n" + "Copyright (C) 2002, 2006 Free Software Foundation, Inc.\n"; + +char help_man[] = + "Usage: asn1Coding [options] <file1> <file2>\n" + "\n" + "asn1Coding generates a DER encoding from FILE1\n" + "with ASN1 definitions and FILE2 with assignments.\n" + "\n" #ifdef HAVE_GETOPT_LONG - "Operation modes:\n" - " -h, --help shows this message and exit.\n" - " -v, --version shows version information and exit.\n" - " -c, --check checks the syntax only.\n" - "\n" - "Output:\n" - " -o <file>, --output <file> output file.\n"; + "Operation modes:\n" + " -h, --help shows this message and exit.\n" + " -v, --version shows version information and exit.\n" + " -c, --check checks the syntax only.\n" + "\n" + "Output:\n" + " -o <file>, --output <file> output file.\n" #else - "Operation modes:\n" - " -h shows this message and exit.\n" - " -v shows version information and exit.\n" - " -c checks the syntax only.\n" - "\n" - "Output:\n" - " -o <file> output file.\n"; + "Operation modes:\n" + " -h shows this message and exit.\n" + " -v shows version information and exit.\n" + " -c checks the syntax only.\n" + "\n" + "Output:\n" + " -o <file> output file.\n" #endif - + "Report bugs to <" PACKAGE_BUGREPORT ">."; #define ASSIGNMENT_SUCCESS 1 #define ASSIGNMENT_ERROR 2 diff --git a/src/asn1Decoding.c b/src/asn1Decoding.c index 52d8bde..1df53fb 100644 --- a/src/asn1Decoding.c +++ b/src/asn1Decoding.c @@ -39,29 +39,32 @@ #include <getopt.h> #endif -char version_man[] = "asn1Decoding (GNU libtasn1) " VERSION; - -char help_man[] = "asn1Decoding generates an ASN1 type from a file\n" - "with ASN1 definitions and another one with a DER encoding.\n" - "\n" - "Usage: asn1Decoding [options] <file1> <file2> <type>\n" - " <file1> file with ASN1 definitions.\n" - " <file2> file with a DER coding.\n" - " <type> ASN1 type name\n" - "\n" +char version_man[] = "asn1Decoding (GNU libtasn1) " VERSION "\n" + "Written by Fabio Fiorina." + "\n" + "Copyright (C) 2002, 2006 Free Software Foundation, Inc.\n"; + +char help_man[] = + "asn1Decoding generates an ASN1 type from FILE1\n" + "with ASN1 definitions and FILE2 with a DER encoding.\n" + "\n" + "Usage: asn1Decoding [options] <file1> <file2> <type>\n" + " <file1> file with ASN1 definitions.\n" + " <file2> file with a DER coding.\n" + " <type> ASN1 type name\n" + "\n" #ifdef HAVE_GETOPT_LONG - "Operation modes:\n" - " -h, --help shows this message and exit.\n" - " -v, --version shows version information and exit.\n" - " -c, --check checks the syntax only.\n"; + "Operation modes:\n" + " -h, --help shows this message and exit.\n" + " -v, --version shows version information and exit.\n" + " -c, --check checks the syntax only.\n" #else - "Operation modes:\n" - " -h shows this message and exit.\n" - " -v shows version information and exit.\n" - " -c checks the syntax only.\n"; + "Operation modes:\n" + " -h shows this message and exit.\n" + " -v shows version information and exit.\n" + " -c checks the syntax only.\n" #endif - - + "Report bugs to <" PACKAGE_BUGREPORT ">."; /********************************************************/ /* Function : main */ diff --git a/src/asn1Parser.c b/src/asn1Parser.c index dec985c..918b3bf 100644 --- a/src/asn1Parser.c +++ b/src/asn1Parser.c @@ -39,32 +39,36 @@ #include <getopt.h> #endif -char version_man[] = "asn1Parser (GNU libtasn1) " LIBTASN1_VERSION; - -char help_man[] = "asn1Parser reads files with ASN1 definitions and\n" - "generates a C array to use with libtasn1 functions.\n" - "\n" - "Usage: asn1Parser [options] file\n" - "\n" +char version_man[] = "asn1Parser (GNU libtasn1) " LIBTASN1_VERSION "\n" + "Written by Fabio Fiorina." + "\n" + "Copyright (C) 2002, 2006 Free Software Foundation, Inc.\n"; + +char help_man[] = + "Usage: asn1Parser [options] FILE\n" + "asn1Parser reads FILE with ASN1 definitions and\n" + "generates a C array to use with libtasn1 functions.\n" + "\n" #ifdef HAVE_GETOPT_LONG - "Operation modes:\n" - " -h, --help shows this message and exit\n" - " -v, --version shows version information and exit.\n" - " -c, --check checks the syntax only.\n" - "\n" - "Output:\n" - " -o <file>, --output <file> output file\n" - " -n <name>, --name <name> array name\n"; + "Operation modes:\n" + " -h, --help shows this message and exit\n" + " -v, --version shows version information and exit.\n" + " -c, --check checks the syntax only.\n" + "\n" + "Output:\n" + " -o <file>, --output <file> output file\n" + " -n <name>, --name <name> array name\n" #else - "Operation modes:\n" - " -h shows this message and exit\n" - " -v shows version information and exit.\n" - " -c checks the syntax only.\n" - "\n" - "Output:\n" - " -o <file> output file\n" - " -n <name> array name\n"; + "Operation modes:\n" + " -h shows this message and exit\n" + " -v shows version information and exit.\n" + " -c checks the syntax only.\n" + "\n" + "Output:\n" + " -o <file> output file\n" + " -n <name> array name\n" #endif + "Report bugs to <" PACKAGE_BUGREPORT ">."; /********************************************************/ /* Function : main */ |