summaryrefslogtreecommitdiff
path: root/lib/libtasn1.h
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2012-03-14 00:20:16 +0100
committerSimon Josefsson <simon@josefsson.org>2012-03-14 00:34:11 +0100
commit6e534bf4fb3144be51c928ed3efcf9c36055c9c7 (patch)
tree6b210e0bfffff8c7251208ca603d90c3902e6f3f /lib/libtasn1.h
parent4b1805a021aa9abe74ba775aaaff84fc21ea07e9 (diff)
downloadlibtasn1-6e534bf4fb3144be51c928ed3efcf9c36055c9c7.tar.gz
Simplify overflow check.
Diffstat (limited to 'lib/libtasn1.h')
-rw-r--r--lib/libtasn1.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index ed8ba87..289fb57 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -261,14 +261,14 @@ extern "C"
int *ret_len, unsigned char *str,
int str_size, int *bit_len);
- extern ASN1_API long
+ extern ASN1_API signed long
asn1_get_length_der (const unsigned char *der, int der_len, int *len);
- extern ASN1_API long
+ extern ASN1_API signed long
asn1_get_length_ber (const unsigned char *ber, int ber_len, int *len);
extern ASN1_API void
- asn1_length_der (unsigned long len, unsigned char *ans, int *ans_len);
+ asn1_length_der (unsigned long int len, unsigned char *ans, int *ans_len);
/* Other utility functions. */