summaryrefslogtreecommitdiff
path: root/lib/ASN1.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-10-08 15:23:13 +0200
committerSimon Josefsson <simon@josefsson.org>2008-10-08 15:23:13 +0200
commit2fdda6dc8ae0053f72f1e21dcab781d9da81d172 (patch)
tree0abc0dd9b0e4a9dc33435a90d6f8652f11b78686 /lib/ASN1.c
parenta59d06403ef4e5392b2ab0784da6a935219457d0 (diff)
downloadlibtasn1-2fdda6dc8ae0053f72f1e21dcab781d9da81d172.tar.gz
libtasn1-2fdda6dc8ae0053f72f1e21dcab781d9da81d172.tar.bz2
libtasn1-2fdda6dc8ae0053f72f1e21dcab781d9da81d172.zip
Update usages of MAX_* constants.
Diffstat (limited to 'lib/ASN1.c')
-rw-r--r--lib/ASN1.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/ASN1.c b/lib/ASN1.c
index aa3d38b..6ddb65c 100644
--- a/lib/ASN1.c
+++ b/lib/ASN1.c
@@ -175,7 +175,7 @@ static node_asn *p_tree; /* pointer to the root of the
static unsigned long lineNumber; /* line number describing the
parser position inside the
file */
-static char lastToken[MAX_NAME_SIZE+1]; /* last token find in the file
+static char lastToken[ASN1_MAX_NAME_SIZE+1]; /* last token find in the file
to parse before the 'parse
error' */
extern char _asn1_identifierMissing[];
@@ -209,7 +209,7 @@ typedef union YYSTYPE
#line 62 "ASN1.y"
{
unsigned int constant;
- char str[MAX_NAME_SIZE+1];
+ char str[ASN1_MAX_NAME_SIZE+1];
node_asn* node;
}
/* Line 187 of yacc.c. */
@@ -2381,7 +2381,7 @@ int
_asn1_yylex()
{
int c,counter=0,k,lastc;
- char string[MAX_NAME_SIZE+1]; /* will contain the next token */
+ char string[ASN1_MAX_NAME_SIZE+1]; /* will contain the next token */
while(1)
{
@@ -2428,7 +2428,7 @@ _asn1_yylex()
c=='(' || c==')' || c=='[' || c==']' ||
c=='{' || c=='}' || c==',' || c=='.'))
{
- if(counter>=MAX_NAME_SIZE){
+ if(counter>=ASN1_MAX_NAME_SIZE){
result_parse=ASN1_NAME_TOO_LONG;
return 0;
}
@@ -2490,7 +2490,7 @@ _asn1_create_errorDescription(int error,char *errorDescription)
strcat(errorDescription,":");
_asn1_ltostr(lineNumber,errorDescription+strlen(fileName)+1);
strcat(errorDescription,": name too long (more than ");
- _asn1_ltostr(MAX_NAME_SIZE,errorDescription+strlen(errorDescription));
+ _asn1_ltostr(ASN1_MAX_NAME_SIZE,errorDescription+strlen(errorDescription));
strcat(errorDescription," characters)");
}
break;
@@ -2538,7 +2538,7 @@ _asn1_create_errorDescription(int error,char *errorDescription)
* is not defined.
*
* ASN1_NAME_TOO_LONG: In the file there is an identifier whith more
- * than MAX_NAME_SIZE characters.
+ * than ASN1_MAX_NAME_SIZE characters.
**/
asn1_retCode
asn1_parser2tree(const char *file_name, ASN1_TYPE *definitions,
@@ -2629,7 +2629,7 @@ asn1_parser2tree(const char *file_name, ASN1_TYPE *definitions,
* is not defined.
*
* ASN1_NAME_TOO_LONG: In the file there is an identifier whith more
- * than MAX_NAME_SIZE characters.
+ * than ASN1_MAX_NAME_SIZE characters.
**/
int asn1_parser2array(const char *inputFileName,const char *outputFileName,
const char *vectorName,char *errorDescription){