diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-10-11 08:53:50 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-10-11 08:53:50 +0200 |
commit | 2f1c471fbcdbcedf69f914a5a3726107c156b17d (patch) | |
tree | 569956fd136c2a1b6a829b57b22d334edb06d6b2 /lib/coding.c | |
parent | 546930508edce93729d41c87901b20b2eb3631fc (diff) | |
download | libtasn1-2f1c471fbcdbcedf69f914a5a3726107c156b17d.tar.gz |
Renamed structures.
Avoid using the reserved by POSIX _t. Suggested by Ivan Shmakov.
asn1_static_node_t -> asn1_static_node
asn1_node_t -> asn1_node
Diffstat (limited to 'lib/coding.c')
-rw-r--r-- | lib/coding.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/coding.c b/lib/coding.c index 3cbcd8a..581ef96 100644 --- a/lib/coding.c +++ b/lib/coding.c @@ -44,7 +44,7 @@ /* Return: */ /******************************************************/ static void -_asn1_error_description_value_not_found (asn1_node_t node, +_asn1_error_description_value_not_found (asn1_node node, char *ErrorDescription) { @@ -373,10 +373,10 @@ asn1_bit_der (const unsigned char *str, int bit_len, /* otherwise ASN1_SUCCESS. */ /******************************************************/ static int -_asn1_complete_explicit_tag (asn1_node_t node, unsigned char *der, +_asn1_complete_explicit_tag (asn1_node node, unsigned char *der, int *counter, int *max_len) { - asn1_node_t p; + asn1_node p; int is_tag_implicit, len2, len3; unsigned char temp[SIZEOF_UNSIGNED_INT]; @@ -446,10 +446,10 @@ _asn1_complete_explicit_tag (asn1_node_t node, unsigned char *der, /* otherwise ASN1_SUCCESS. */ /******************************************************/ static int -_asn1_insert_tag_der (asn1_node_t node, unsigned char *der, int *counter, +_asn1_insert_tag_der (asn1_node node, unsigned char *der, int *counter, int *max_len) { - asn1_node_t p; + asn1_node p; int tag_len, is_tag_implicit; unsigned char class, class_implicit = 0, temp[SIZEOF_UNSIGNED_INT * 3 + 1]; unsigned long tag_implicit = 0; @@ -607,7 +607,7 @@ _asn1_insert_tag_der (asn1_node_t node, unsigned char *der, int *counter, /* Return: */ /******************************************************/ static void -_asn1_ordering_set (unsigned char *der, int der_len, asn1_node_t node) +_asn1_ordering_set (unsigned char *der, int der_len, asn1_node node) { struct vet { @@ -618,7 +618,7 @@ _asn1_ordering_set (unsigned char *der, int der_len, asn1_node_t node) int counter, len, len2; struct vet *first, *last, *p_vet, *p2_vet; - asn1_node_t p; + asn1_node p; unsigned char class, *temp; unsigned long tag; @@ -721,7 +721,7 @@ _asn1_ordering_set (unsigned char *der, int der_len, asn1_node_t node) /* Return: */ /******************************************************/ static void -_asn1_ordering_set_of (unsigned char *der, int der_len, asn1_node_t node) +_asn1_ordering_set_of (unsigned char *der, int der_len, asn1_node node) { struct vet { @@ -731,7 +731,7 @@ _asn1_ordering_set_of (unsigned char *der, int der_len, asn1_node_t node) int counter, len, len2, change; struct vet *first, *last, *p_vet, *p2_vet; - asn1_node_t p; + asn1_node p; unsigned char *temp, class; unsigned long k, max; @@ -867,10 +867,10 @@ _asn1_ordering_set_of (unsigned char *der, int der_len, asn1_node_t node) * length needed. **/ int -asn1_der_coding (asn1_node_t element, const char *name, void *ider, int *len, +asn1_der_coding (asn1_node element, const char *name, void *ider, int *len, char *ErrorDescription) { - asn1_node_t node, p, p2; + asn1_node node, p, p2; unsigned char temp[SIZEOF_UNSIGNED_LONG_INT * 3 + 1]; int counter, counter_old, len2, len3, tlen, move, max_len, max_len_old; int err; |