Use the correct max length definition.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 16 May 2014 05:18:26 +0000 (07:18 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 16 May 2014 06:54:53 +0000 (08:54 +0200)
lib/decoding.c
lib/parser_aux.h

index 16f202a..813afc0 100644 (file)
@@ -731,7 +731,7 @@ _asn1_get_octet_string (const unsigned char *der, asn1_node node, int *len)
       /* copy */
       if (node)
        {
-         unsigned char temp[DER_LEN];
+         unsigned char temp[ASN1_MAX_LENGTH_SIZE];
          int ret;
 
          len2 = sizeof (temp);
index bf37852..f1e9a07 100644 (file)
@@ -22,8 +22,6 @@
 #ifndef _PARSER_AUX_H
 #define _PARSER_AUX_H
 
-#define DER_LEN 16
-
 /***************************************/
 /*  Functions used by ASN.1 parser     */
 /***************************************/