asn1Decoding: Drop the useless -c parameter.
authorSimon Josefsson <simon@josefsson.org>
Tue, 25 Oct 2011 13:45:11 +0000 (15:45 +0200)
committerSimon Josefsson <simon@josefsson.org>
Tue, 25 Oct 2011 13:45:11 +0000 (15:45 +0200)
NEWS
doc/libtasn1.texi
src/asn1Decoding.c

diff --git a/NEWS b/NEWS
index 49f0c36..cd80580 100644 (file)
--- 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.
index 9e5e1f0..3099b0f 100644 (file)
@@ -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
 
index f4d43d5..1799129 100644 (file)
@@ -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",