summaryrefslogtreecommitdiff
path: root/lib/libtasn1.h
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-11-06 10:32:49 +0100
committerSimon Josefsson <simon@josefsson.org>2008-11-06 10:32:49 +0100
commitb1405c1bd8ca63ee7031e27b2e9b98613f2a1a6e (patch)
treeeb50320204ddbe45150e5c66b88e04d371e03da3 /lib/libtasn1.h
parent927856fa3007e7b225a408878159f28968400cb4 (diff)
downloadlibtasn1-b1405c1bd8ca63ee7031e27b2e9b98613f2a1a6e.tar.gz
Fix error function namespace.
Diffstat (limited to 'lib/libtasn1.h')
-rw-r--r--lib/libtasn1.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index 81418f2..8fc08d9 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -31,7 +31,7 @@ extern "C"
{
#endif
-#define LIBTASN1_VERSION "2.0"
+#define LIBTASN1_VERSION "1.6"
#include <sys/types.h>
#include <time.h>
@@ -203,9 +203,8 @@ extern "C"
const char *asn1_check_version (const char *req_version);
- const char *libtasn1_strerror (asn1_retCode error);
-
- void libtasn1_perror (asn1_retCode error);
+ const char *asn1_strerror (asn1_retCode error);
+ void asn1_perror (asn1_retCode error);
/* DER utility functions. */
@@ -241,6 +240,22 @@ extern "C"
asn1_retCode asn1_copy_node (ASN1_TYPE dst, const char *dst_name,
ASN1_TYPE src, const char *src_name);
+
+ /* Deprecated functions. */
+
+#define _GNUTLS_GCC_VERSION \
+ (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
+
+#if _GNUTLS_GCC_VERSION >= 30100
+# define ASN1_DEPRECATED __attribute__ ((__deprecated__))
+#endif
+
+ /* Use asn1_strerror instead. */
+ const char *libtasn1_strerror (asn1_retCode error) ASN1_DEPRECATED;
+
+ /* Use asn1_perror instead. */
+ void libtasn1_perror (asn1_retCode error) ASN1_DEPRECATED;
+
#ifdef __cplusplus
}
#endif