summaryrefslogtreecommitdiff
path: root/lib/minitasn1/int.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-07-12 14:48:14 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-07-12 14:48:14 +0200
commitbde4ceb7cafe92fa83086b2fa84ee4516f151664 (patch)
tree1241bae54b6b818eb8e2a9ac7b95539441ba897a /lib/minitasn1/int.h
parent4bfc3d836166ad1ccfa864d18b1a467065f43dc0 (diff)
downloadgnutls-bde4ceb7cafe92fa83086b2fa84ee4516f151664.tar.gz
libtasn1: updated to allow large OIDs to be used even on 32-bit systems
Diffstat (limited to 'lib/minitasn1/int.h')
-rw-r--r--lib/minitasn1/int.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/minitasn1/int.h b/lib/minitasn1/int.h
index f1f13024e4..7d2eea379c 100644
--- a/lib/minitasn1/int.h
+++ b/lib/minitasn1/int.h
@@ -118,6 +118,12 @@ extern const tag_and_class_st _asn1_tags[];
#define _asn1_strcpy(a,b) strcpy((char *)a, (const char *)b)
#define _asn1_strcat(a,b) strcat((char *)a, (const char *)b)
+#if SIZEOF_UNSIGNED_LONG_INT == 8
+# define _asn1_strtou64(n,e,b) strtoul((const char *) n, e, b)
+#else
+# define _asn1_strtou64(n,e,b) strtoull((const char *) n, e, b)
+#endif
+
#define MAX_LOG_SIZE 1024 /* maximum number of characters of a log message */
/* Define used for visiting trees. */