summaryrefslogtreecommitdiff
path: root/lib/decoding.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-04-06 19:31:43 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-04-06 19:31:43 +0200
commitb054c18537a0d2a7abc609d3f3561b090258ba3e (patch)
tree01a284924fb6ad68d9bac9099c59d7bff7e67413 /lib/decoding.c
parent0b80a8be08f4b99c5fffbafb0cd7e349cf13f3f1 (diff)
downloadlibtasn1-b054c18537a0d2a7abc609d3f3561b090258ba3e.tar.gz
libtasn1-b054c18537a0d2a7abc609d3f3561b090258ba3e.tar.bz2
libtasn1-b054c18537a0d2a7abc609d3f3561b090258ba3e.zip
long is always signed.
Diffstat (limited to 'lib/decoding.c')
-rw-r--r--lib/decoding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/decoding.c b/lib/decoding.c
index 1cfad35..978a205 100644
--- a/lib/decoding.c
+++ b/lib/decoding.c
@@ -58,7 +58,7 @@ _asn1_error_description_tag_error (ASN1_TYPE node, char *ErrorDescription)
* length, or -2 when the value was too big to fit in a int, or -4
* when the decoded length value plus @len would exceed @der_len.
**/
-signed long
+long
asn1_get_length_der (const unsigned char *der, int der_len, int *len)
{
unsigned int ans, sum, last;
@@ -189,7 +189,7 @@ asn1_get_tag_der (const unsigned char *der, int der_len,
*
* Since: 2.0
**/
-signed long
+long
asn1_get_length_ber (const unsigned char *ber, int ber_len, int *len)
{
int ret;