summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-03-13 19:30:29 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-03-13 19:34:32 +0100
commitae041943ec3d102a736ab58d379f346fea3b2179 (patch)
treebd95f9f5260b1a2bddd9258830ff471428d3600a
parentac7e267d3acbcb6c9ac21b0a97bdc926417ea3a0 (diff)
downloadlibtasn1-ae041943ec3d102a736ab58d379f346fea3b2179.tar.gz
int is signed.
-rw-r--r--lib/decoding.c10
-rw-r--r--lib/libtasn1.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/decoding.c b/lib/decoding.c
index 25c99c5..00ae287 100644
--- a/lib/decoding.c
+++ b/lib/decoding.c
@@ -56,10 +56,10 @@ _asn1_error_description_tag_error (ASN1_TYPE node, char *ErrorDescription)
* Returns: Return the decoded length value, or -1 on indefinite
* length, or -2 when the value was too big.
**/
-signed int
+int
asn1_get_length_der (const unsigned char *der, int der_len, int *len)
{
- signed int ans;
+ int ans;
int k, punt;
*len = 0;
@@ -112,10 +112,10 @@ asn1_get_length_der (const unsigned char *der, int der_len, int *len)
* length, -2 when the value was too big or -3 when the value
* and the size of length exceed the @der_len.
-*/
-static signed int
+static int
asn1_get_length_der_checked (const unsigned char *der, int der_len, int *len)
{
-signed int ret;
+int ret;
ret = asn1_get_length_der(der, der_len, len);
if (ret < 0)
@@ -199,7 +199,7 @@ asn1_get_tag_der (const unsigned char *der, int der_len,
*
* Since: 2.0
**/
-signed int
+int
asn1_get_length_ber (const unsigned char *ber, int ber_len, int *len)
{
int ret;
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index f18327f..ac9fafe 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -261,10 +261,10 @@ extern "C"
int *ret_len, unsigned char *str,
int str_size, int *bit_len);
- extern ASN1_API signed int
+ extern ASN1_API int
asn1_get_length_der (const unsigned char *der, int der_len, int *len);
- extern ASN1_API signed int
+ extern ASN1_API int
asn1_get_length_ber (const unsigned char *ber, int ber_len, int *len);
extern ASN1_API void