removed the asn1c utility (it was replaced by asn1Coding anyway).
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 26 Feb 2004 16:12:06 +0000 (16:12 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 26 Feb 2004 16:12:06 +0000 (16:12 +0000)
src/Makefile.am
src/asn1Coding.c
src/asn1c.c [deleted file]

index 3859356..c80d5fd 100644 (file)
@@ -2,7 +2,7 @@ INCLUDES = -I../lib
 
 EXTRA_DIST = pkix.asn pkix_asn1_tab.c asn1Coding_test.asn asn1Coding_test.asg
 
-noinst_PROGRAMS = asn1Parser asn1Coding asn1Decoding asn1c CertificateExample \
+noinst_PROGRAMS = asn1Parser asn1Coding asn1Decoding CertificateExample \
                   CrlExample
  
 asn1Parser_SOURCES = asn1Parser.c  
@@ -20,5 +20,3 @@ CertificateExample_LDADD = ../lib/libtasn1.la
 CrlExample_SOURCES = CrlExample.c  
 CrlExample_LDADD = ../lib/libtasn1.la
 
-asn1c_SOURCES = asn1c.c
-asn1c_LDADD = ../lib/libtasn1.la
index 774547b..3a2ccfe 100644 (file)
@@ -39,7 +39,7 @@
   #include <getopt.h>
 #endif
 
-char version_man[] = "asn1Coding (GNU libasn1) " VERSION;
+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"
@@ -239,7 +239,7 @@ main(int argc,char *argv[])
    printf("asn1Coding: %s\n",errorDescription);
    break;
  default:
-   printf("libasn1 ERROR: %s\n",libtasn1_strerror(asn1_result));
+   printf("libtasn1 ERROR: %s\n",libtasn1_strerror(asn1_result));
  }
 
  if(asn1_result != ASN1_SUCCESS){
@@ -270,7 +270,7 @@ main(int argc,char *argv[])
      asn1_result=asn1_write_value(structure,varName,value,0); 
 
    if(asn1_result != ASN1_SUCCESS){
-     printf("libasn1 ERROR: %s\n",libtasn1_strerror(asn1_result));
+     printf("libtasn1 ERROR: %s\n",libtasn1_strerror(asn1_result));
      
      asn1_delete_structure(&definitions);
      asn1_delete_structure(&structure);
diff --git a/src/asn1c.c b/src/asn1c.c
deleted file mode 100644 (file)
index dc75dd9..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- *      Copyright (C) 2000,2001 Fabio Fiorina
- *
- * This file is part of GNUTLS.
- *
- * GNUTLS is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * GNUTLS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-
-/*****************************************************/
-/* File: PkixTabExample.c                            */
-/* Description: An example on how to use the         */
-/*              'asn1_parser_asn1_file_c' function.  */   
-/*****************************************************/
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include "libtasn1.h"
-
-int
-main(int argc,char *argv[])
-{
-  int result;
-  char* outfile;
-  char errorDescription[MAX_ERROR_DESCRIPTION_SIZE];
-
-  
-  if(argc<2||argc>3) {
-       fprintf(stderr, "Usage: %s: input.asn output.c\n", argv[0]);
-       exit(1);
-  }
-  if (argc==3) outfile=argv[2];
-  else outfile=NULL;
-  
-  result=asn1_parser2array( argv[1], outfile, NULL, errorDescription);
-
-  if(result==ASN1_SYNTAX_ERROR){
-    printf("PARSE ERROR\n");
-    return 1;
-  }
-  else if(result==ASN1_IDENTIFIER_NOT_FOUND){
-    printf("IDENTIFIER NOT FOUND\n");
-    return 1;
-  }
-  else if(result==ASN1_FILE_NOT_FOUND){
-    printf("FILE NOT FOUND\n");
-    return 1;
-  }
-
-     return 0;
-}
-
-
-
-
-
-
-
-
-