summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-03-23 14:44:12 +0100
committerSimon Josefsson <simon@josefsson.org>2009-03-23 14:44:12 +0100
commitc30b667a92f8b88f7e9d5c9a5d494ba833323810 (patch)
treed943d965b88232bf1c84fa274c9a2f349ab2ea8e /lib
parent77f321a0a9f652da11bb17cfe280c1770d03d41e (diff)
downloadlibtasn1-c30b667a92f8b88f7e9d5c9a5d494ba833323810.tar.gz
libtasn1-c30b667a92f8b88f7e9d5c9a5d494ba833323810.tar.bz2
libtasn1-c30b667a92f8b88f7e9d5c9a5d494ba833323810.zip
Make it compile.
Diffstat (limited to 'lib')
-rw-r--r--lib/int.h2
-rw-r--r--lib/libtasn1.h4
-rw-r--r--lib/libtasn1.map4
-rw-r--r--lib/parser_aux.c2
-rw-r--r--lib/structure.c2
5 files changed, 9 insertions, 5 deletions
diff --git a/lib/int.h b/lib/int.h
index 78a2551..5b42af5 100644
--- a/lib/int.h
+++ b/lib/int.h
@@ -44,7 +44,7 @@
/* This structure is also in libtasn1.h, but then contains less
fields. You cannot make any modifications to these first fields
without breaking ABI. */
-struct node_asn
+struct node_asn_struct
{
/* public fields: */
char *name; /* Node name */
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index f6236d2..fe3f150 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -287,11 +287,11 @@ extern "C"
/* Use asn1_strerror instead. */
const char *libtasn1_strerror (asn1_retCode error)
- __attribute__ ((deprecated));
+ __attribute__ ((deprecated)) ASN1_API;
/* Use asn1_perror instead. */
void libtasn1_perror (asn1_retCode error)
- __attribute__ ((deprecated));
+ __attribute__ ((deprecated)) ASN1_API;
#endif
diff --git a/lib/libtasn1.map b/lib/libtasn1.map
index ca00716..ca662c0 100644
--- a/lib/libtasn1.map
+++ b/lib/libtasn1.map
@@ -50,6 +50,10 @@ LIBTASN1_0_3
asn1_strerror;
asn1_write_value;
+ # Old symbols
+ libtasn1_strerror;
+ libtasn1_perror;
+
local:
*;
};
diff --git a/lib/parser_aux.c b/lib/parser_aux.c
index 29d0a18..554551d 100644
--- a/lib/parser_aux.c
+++ b/lib/parser_aux.c
@@ -58,7 +58,7 @@ _asn1_add_node (unsigned int type)
list_type *listElement;
ASN1_TYPE punt;
- punt = (ASN1_TYPE) _asn1_calloc (1, sizeof (struct node_asn));
+ punt = (ASN1_TYPE) _asn1_calloc (1, sizeof (struct node_asn_struct));
if (punt == NULL)
return NULL;
diff --git a/lib/structure.c b/lib/structure.c
index bea3077..3931651 100644
--- a/lib/structure.c
+++ b/lib/structure.c
@@ -50,7 +50,7 @@ _asn1_add_node_only (unsigned int type)
{
ASN1_TYPE punt;
- punt = (ASN1_TYPE) _asn1_calloc (1, sizeof (struct node_asn));
+ punt = (ASN1_TYPE) _asn1_calloc (1, sizeof (struct node_asn_struct));
if (punt == NULL)
return NULL;