diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-04-06 19:31:43 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-04-06 19:31:43 +0200 |
commit | b054c18537a0d2a7abc609d3f3561b090258ba3e (patch) | |
tree | 01a284924fb6ad68d9bac9099c59d7bff7e67413 /lib/decoding.c | |
parent | 0b80a8be08f4b99c5fffbafb0cd7e349cf13f3f1 (diff) | |
download | libtasn1-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.c | 4 |
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; |