summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2005-08-12 13:50:00 +0000
committerSimon Josefsson <simon@josefsson.org>2005-08-12 13:50:00 +0000
commit6aed4ab2ad244c396d9e17045af94abf3d038b1a (patch)
tree73cf3fa1fa7386148ac9e2d196fcc8c6f2f9c7c6
parent2be32095d90811697c0a509e3c27d1e72061d51c (diff)
downloadgnutls-6aed4ab2ad244c396d9e17045af94abf3d038b1a.tar.gz
Update to 0.2.15.
-rw-r--r--lib/minitasn1/errors.c12
-rw-r--r--lib/minitasn1/errors.h30
-rw-r--r--lib/minitasn1/libtasn1.h2
3 files changed, 6 insertions, 38 deletions
diff --git a/lib/minitasn1/errors.c b/lib/minitasn1/errors.c
index 96fdd3ec6b..d59e0838bc 100644
--- a/lib/minitasn1/errors.c
+++ b/lib/minitasn1/errors.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002 Fabio Fiorina
+/* Copyright (C) 2002, 2005 Fabio Fiorina
*
* This file is part of LIBASN1.
*
@@ -121,11 +121,7 @@ void _libtasn1_log( const char *fmt, ...) {
return;
}
#else /* not DEBUG */
-# ifndef C99_MACROS
-
-/* Without C99 macros these functions have to
- * be called. This may affect performance.
- */
-void _libtasn1_null_log( void* x, ...) { return; }
-# endif /* C99_MACROS */
+void _libtasn1_log( const char *fmt, ...) {
+ return;
+}
#endif /* DEBUG */
diff --git a/lib/minitasn1/errors.h b/lib/minitasn1/errors.h
index b4a03713ca..a5f0377200 100644
--- a/lib/minitasn1/errors.h
+++ b/lib/minitasn1/errors.h
@@ -21,40 +21,12 @@
#ifndef ERRORS_H
#define ERRORS_H
-
#include "int.h"
#include "errors_int.h"
-#ifdef LIBTASN1_DEBUG
-# ifdef __FILE__
-# ifdef __LINE__
-# define _libtasn1_assert() fprintf(stderr, "LIBTASN1_ASSERT: %s:%d\n", __FILE__,__LINE__);
-# else
-# define _libtasn1_assert()
-# endif
-# else /* __FILE__ defined */
-# define _libtasn1_assert()
-# endif
-#else /* no debug */
-# define _libtasn1_assert()
-#endif
-
const char* libtasn1_strerror(int error);
void libtasn1_perror(int error);
-#ifdef LIBTASN1_DEBUG
- void _libtasn1_log( const char *fmt, ...);
-#else
-
-/* These macros only work with C99 compliant compilers
- */
-# ifdef C99_MACROS
-# define _libtasn1_log(...)
-# else
-# define _libtasn1_log _libtasn1_null_log
-void _libtasn1_null_log( void*, ...);
-# endif /* C99_MACROS */
-
-#endif /* DEBUG */
+void _libtasn1_log( const char *fmt, ...);
#endif /* ERRORS_H */
diff --git a/lib/minitasn1/libtasn1.h b/lib/minitasn1/libtasn1.h
index c89502b02b..2098059eea 100644
--- a/lib/minitasn1/libtasn1.h
+++ b/lib/minitasn1/libtasn1.h
@@ -30,7 +30,7 @@
extern "C" {
#endif
-#define LIBTASN1_VERSION "0.2.14"
+#define LIBTASN1_VERSION "0.2.15"
#include <sys/types.h>
#include <time.h>