summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--lib/coding.c15
-rw-r--r--lib/decoding.c15
-rw-r--r--lib/element.c13
-rw-r--r--lib/errors.c21
-rw-r--r--lib/gstr.c15
-rw-r--r--lib/libtasn1.h10
-rw-r--r--lib/parser_aux.c15
-rw-r--r--src/asn1Parser.c4
9 files changed, 59 insertions, 51 deletions
diff --git a/NEWS b/NEWS
index 0060eb9..d3b1b86 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,8 @@ Version 0.2.18
- Fixed typo in src/Makefile.am to make it build with objdir != srcdir,
thanks to Bernard Leak.
- Update of gnulib files.
+- Typo fixes in comments, e.g. finish libasn1 to libtasn1 renaming,
+ use LGPL boiler plate on some files in lib/.
Version 0.2.17
- Fixed typo to make it build.
diff --git a/lib/coding.c b/lib/coding.c
index de97543..f5d9cb6 100644
--- a/lib/coding.c
+++ b/lib/coding.c
@@ -2,21 +2,22 @@
* Copyright (C) 2004, 2006 Free Software Foundation
* Copyright (C) 2002 Fabio Fiorina
*
- * This file is part of LIBASN1.
+ * This file is part of LIBTASN1.
*
- * The LIBTASN1 library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
+ * The LIBTASN1 library is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA
*/
diff --git a/lib/decoding.c b/lib/decoding.c
index e9a6464..bfb6ccc 100644
--- a/lib/decoding.c
+++ b/lib/decoding.c
@@ -2,21 +2,22 @@
* Copyright (C) 2004, 2006 Free Software Foundation
* Copyright (C) 2002 Fabio Fiorina
*
- * This file is part of LIBASN1.
+ * This file is part of LIBTASN1.
*
- * The LIBTASN1 library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
+ * The LIBTASN1 library is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA
*/
diff --git a/lib/element.c b/lib/element.c
index 829a1f4..644254c 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -2,21 +2,22 @@
* Copyright (C) 2004, 2006 Free Software Foundation
* Copyright (C) 2000, 2001, 2002, 2003 Fabio Fiorina
*
- * This file is part of LIBASN1.
+ * This file is part of LIBTASN1.
*
- * The LIBTASN1 library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
+ * The LIBTASN1 library is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA
*/
/*****************************************************/
diff --git a/lib/errors.c b/lib/errors.c
index 4294705..b1224da 100644
--- a/lib/errors.c
+++ b/lib/errors.c
@@ -2,21 +2,22 @@
* Copyright (C) 2006 Free Software Foundation, Inc.
* Copyright (C) 2002, 2005 Fabio Fiorina
*
- * This file is part of LIBASN1.
+ * This file is part of LIBTASN1.
*
- * The LIBTASN1 library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
+ * The LIBTASN1 library is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA
*/
#include <int.h>
@@ -68,10 +69,10 @@ static const libtasn1_error_entry error_algorithms[] = {
/**
* libtasn1_perror - prints a string to stderr with a description of an error
- * @error: is an error returned by a libasn1 function.
+ * @error: is an error returned by a libtasn1 function.
*
* This function is like perror(). The only difference is that it
- * accepts an error returned by a libasn1 function.
+ * accepts an error returned by a libtasn1 function.
**/
void libtasn1_perror(asn1_retCode error)
{
@@ -91,7 +92,7 @@ void libtasn1_perror(asn1_retCode error)
* @error: is an error returned by a libtasn1 function.
*
* This function is similar to strerror(). The only difference is
- * that it accepts an error (number) returned by a libasn1 function.
+ * that it accepts an error (number) returned by a libtasn1 function.
*
* Returns: Pointer to static zero-terminated string describing error
* code.
diff --git a/lib/gstr.c b/lib/gstr.c
index bd4bab2..65627d6 100644
--- a/lib/gstr.c
+++ b/lib/gstr.c
@@ -2,21 +2,22 @@
* Copyright (C) 2006 Free Software Foundation
* Copyright (C) 2002 Nikos Mavroyanopoulos
*
- * This file is part of LIBASN1.
+ * This file is part of LIBTASN1.
*
- * The LIBTASN1 library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
+ * The LIBTASN1 library is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA
*/
#include <int.h>
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index 034d328..3c6970d 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -21,8 +21,8 @@
*
*/
-#ifndef LIBASN1_H
-# define LIBASN1_H
+#ifndef LIBTASN1_H
+# define LIBTASN1_H
#include <stdio.h> /* for FILE* */
@@ -42,10 +42,10 @@ extern "C" {
/* (null character included) */
-typedef int asn1_retCode; /* type returned by libasn1 functions */
+typedef int asn1_retCode; /* type returned by libtasn1 functions */
/*****************************************/
- /* Errors returned by libasn1 functions */
+ /* Errors returned by libtasn1 functions */
/*****************************************/
#define ASN1_SUCCESS 0
#define ASN1_FILE_NOT_FOUND 1
@@ -197,4 +197,4 @@ void libtasn1_perror(asn1_retCode error);
}
#endif
-#endif /* LIBASN1_H */
+#endif /* LIBTASN1_H */
diff --git a/lib/parser_aux.c b/lib/parser_aux.c
index 6c8f5cc..706be0c 100644
--- a/lib/parser_aux.c
+++ b/lib/parser_aux.c
@@ -2,21 +2,22 @@
* Copyright (C) 2004, 2006 Free Software Foundation
* Copyright (C) 2000,2001 Fabio Fiorina
*
- * This file is part of LIBASN1.
+ * This file is part of LIBTASN1.
*
- * The LIBTASN1 library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
+ * The LIBTASN1 library is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA
*/
#include <int.h>
diff --git a/src/asn1Parser.c b/src/asn1Parser.c
index e5c5073..c5679f6 100644
--- a/src/asn1Parser.c
+++ b/src/asn1Parser.c
@@ -41,7 +41,7 @@
#include <getopt.h>
#endif
-char version_man[] = "asn1Parser (GNU libasn1) " VERSION;
+char version_man[] = "asn1Parser (GNU libtasn1) " VERSION;
char help_man[] = "asn1Parser reads files with ASN1 definitions and\n"
"generates a C array to use with libtasn1 functions.\n"
@@ -193,7 +193,7 @@ main(int argc,char *argv[])
printf("asn1Parser: %s\n",errorDescription);
break;
default:
- printf("libasn1 ERROR: %s\n",libtasn1_strerror(parse_result));
+ printf("libtasn1 ERROR: %s\n",libtasn1_strerror(parse_result));
}