summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2011-10-25 15:45:11 +0200
committerSimon Josefsson <simon@josefsson.org>2011-10-25 15:45:11 +0200
commitec110571ad58d2c6e36dd8015f069c6ff13c96cf (patch)
tree19b7ba2705523b76ea39af2cf36ebcb7966123e3
parent6172ede34fb7c69727b5e3a828ecbf0b78fe3e4f (diff)
downloadlibtasn1-ec110571ad58d2c6e36dd8015f069c6ff13c96cf.tar.gz
asn1Decoding: Drop the useless -c parameter.
-rw-r--r--NEWS1
-rw-r--r--doc/libtasn1.texi1
-rw-r--r--src/asn1Decoding.c6
3 files changed, 1 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index 49f0c36..cd80580 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ GNU Libtasn1 NEWS -*- outline -*-
* Noteworthy changes in release 2.10 (????-??-??) [stable]
- build: Update gnulib files.
- asn1Coding: actually implement the -c parameter.
+- asn1Decoding: the -c parameter serves no purpose, remove it.
* Noteworthy changes in release 2.9 (2010-12-06) [stable]
- tests: Link to gnulib to avoid build error related to 'rpl_ftello' on Solaris.
diff --git a/doc/libtasn1.texi b/doc/libtasn1.texi
index 9e5e1f0..3099b0f 100644
--- a/doc/libtasn1.texi
+++ b/doc/libtasn1.texi
@@ -335,7 +335,6 @@ Usage: asn1Decoding [options] file1 file2 type
Options:
-h : shows the help message.
-v : shows version information and exit.
- -c : checks the syntax only.
-o file : output file.
@end verbatim
diff --git a/src/asn1Decoding.c b/src/asn1Decoding.c
index f4d43d5..1799129 100644
--- a/src/asn1Decoding.c
+++ b/src/asn1Decoding.c
@@ -54,7 +54,6 @@ Decodes DER data in ENCODED file, for the ASN1TYPE element\n\
described in ASN.1 DEFINITIONS file, and print decoded structures.\n\
\n");
printf ("\
- -c, --check checks the syntax only\n\
-h, --help display this help and exit\n\
-v, --version output version information and exit\n");
emit_bug_reporting_address ();
@@ -68,7 +67,6 @@ main (int argc, char *argv[])
static const struct option long_options[] = {
{"help", no_argument, 0, 'h'},
{"version", no_argument, 0, 'v'},
- {"check", no_argument, 0, 'c'},
{0, 0, 0, 0}
};
int option_index = 0;
@@ -76,7 +74,6 @@ main (int argc, char *argv[])
char *inputFileAsnName = NULL;
char *inputFileDerName = NULL;
char *typeName = NULL;
- int checkSyntaxOnly = 0;
ASN1_TYPE definitions = ASN1_TYPE_EMPTY;
ASN1_TYPE structure = ASN1_TYPE_EMPTY;
char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
@@ -108,9 +105,6 @@ main (int argc, char *argv[])
"Fabio Fiorina", NULL);
exit (0);
break;
- case 'c': /* CHECK SYNTAX */
- checkSyntaxOnly = 1;
- break;
case '?': /* UNKNOW OPTION */
fprintf (stderr,
"asn1Decoding: option '%s' not recognized or without argument.\n\n",