From 230055df010c42deea57e282793ce5aab7cf1113 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 21 Nov 2012 23:27:29 +0100 Subject: [PATCH] updated libtasn1 version --- lib/minitasn1/libtasn1.h | 7 ++++--- lib/minitasn1/structure.c | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/minitasn1/libtasn1.h b/lib/minitasn1/libtasn1.h index 5be46d073..c80a5ca45 100644 --- a/lib/minitasn1/libtasn1.h +++ b/lib/minitasn1/libtasn1.h @@ -124,7 +124,7 @@ extern "C" unsigned int type; /* Node type */ const void *value; /* Node value */ }; - typedef struct asn1_static_node_st asn1_static_node_t; + typedef struct asn1_static_node_st asn1_static_node; /* List of constants for field type of typedef node_asn */ #define ASN1_ETYPE_CONSTANT 1 @@ -183,7 +183,7 @@ extern "C" const char *vectorName, char *errorDescription); extern ASN1_API int - asn1_array2tree (const asn1_static_node_t * array, + asn1_array2tree (const asn1_static_node * array, asn1_node * definitions, char *errorDescription); extern ASN1_API void @@ -307,7 +307,8 @@ typedef int asn1_retCode; /* type returned by libtasn1 functions */ #define ASN1_TYPE_EMPTY NULL #define static_struct_asn asn1_static_node_st -#define ASN1_ARRAY_TYPE asn1_static_node_t +#define ASN1_ARRAY_TYPE asn1_static_node +#define asn1_static_node_t asn1_static_node #define node_data_struct asn1_data_node_st #define ASN1_DATA_NODE asn1_data_node_st diff --git a/lib/minitasn1/structure.c b/lib/minitasn1/structure.c index 4613d0606..32be50b7c 100644 --- a/lib/minitasn1/structure.c +++ b/lib/minitasn1/structure.c @@ -96,7 +96,7 @@ _asn1_create_static_structure (asn1_node pointer, char *output_file_name, fprintf (file, "#include \n\n"); - fprintf (file, "const asn1_static_node_t %s[] = {\n", vector_name); + fprintf (file, "const asn1_static_node %s[] = {\n", vector_name); p = pointer; @@ -174,7 +174,7 @@ _asn1_create_static_structure (asn1_node pointer, char *output_file_name, * %ASN1_ARRAY_ERROR if the array pointed by @array is wrong. **/ int -asn1_array2tree (const asn1_static_node_t * array, asn1_node * definitions, +asn1_array2tree (const asn1_static_node * array, asn1_node * definitions, char *errorDescription) { asn1_node p, p_last = NULL; -- 2.11.4.GIT