diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-02-26 16:12:06 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-02-26 16:12:06 +0000 |
commit | bf5311a7a5a020f03568a1a2042be968ff56da70 (patch) | |
tree | e1fa12375e25d5d67cf335f806362087f8864fa7 /src | |
parent | f36cdec9b7a6495fed2a41e3655d99020b15e8c7 (diff) | |
download | libtasn1-bf5311a7a5a020f03568a1a2042be968ff56da70.tar.gz libtasn1-bf5311a7a5a020f03568a1a2042be968ff56da70.tar.bz2 libtasn1-bf5311a7a5a020f03568a1a2042be968ff56da70.zip |
removed the asn1c utility (it was replaced by asn1Coding anyway).
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/asn1Coding.c | 6 | ||||
-rw-r--r-- | src/asn1c.c | 74 |
3 files changed, 4 insertions, 80 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 3859356..c80d5fd 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 diff --git a/src/asn1Coding.c b/src/asn1Coding.c index 774547b..3a2ccfe 100644 --- a/src/asn1Coding.c +++ b/src/asn1Coding.c @@ -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 index dc75dd9..0000000 --- a/src/asn1c.c +++ /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; -} - - - - - - - - - |