summaryrefslogtreecommitdiff
path: root/tests
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 /tests
parenta59d06403ef4e5392b2ab0784da6a935219457d0 (diff)
downloadlibtasn1-2fdda6dc8ae0053f72f1e21dcab781d9da81d172.tar.gz
libtasn1-2fdda6dc8ae0053f72f1e21dcab781d9da81d172.tar.bz2
libtasn1-2fdda6dc8ae0053f72f1e21dcab781d9da81d172.zip
Update usages of MAX_* constants.
Diffstat (limited to 'tests')
-rw-r--r--tests/Test_encoding.c2
-rw-r--r--tests/Test_parser.c4
-rw-r--r--tests/Test_tree.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/Test_encoding.c b/tests/Test_encoding.c
index 4b96727..0429d3c 100644
--- a/tests/Test_encoding.c
+++ b/tests/Test_encoding.c
@@ -40,7 +40,7 @@ main (int argc, char *argv[])
asn1_retCode result;
ASN1_TYPE definitions = ASN1_TYPE_EMPTY;
ASN1_TYPE asn1_element = ASN1_TYPE_EMPTY;
- char errorDescription[MAX_ERROR_DESCRIPTION_SIZE];
+ char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
const char *treefile = getenv ("ASN1ENCODING");
if (!treefile)
diff --git a/tests/Test_parser.c b/tests/Test_parser.c
index e832180..72b0183 100644
--- a/tests/Test_parser.c
+++ b/tests/Test_parser.c
@@ -49,7 +49,7 @@ test_type test_array[]={
ASN1_SYNTAX_ERROR,_FILE_":6: parse error near 'TEST_PARSER'"},
{6,"TEST_PARSER { }",ASN1_SUCCESS,""},
- /* Test MAX_NAME_SIZE (128) */
+ /* Test ASN1_MAX_NAME_SIZE (128) */
{12,"a1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567 ::= INTEGER",
ASN1_SUCCESS,""},
{12,"a12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678 ::= INTEGER",
@@ -145,7 +145,7 @@ main(int argc,char *argv[])
{
asn1_retCode result;
ASN1_TYPE definitions=ASN1_TYPE_EMPTY;
- char errorDescription[MAX_ERROR_DESCRIPTION_SIZE];
+ char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
test_type *test;
int errorCounter=0,testCounter=0;
diff --git a/tests/Test_tree.c b/tests/Test_tree.c
index 679f52f..96bad24 100644
--- a/tests/Test_tree.c
+++ b/tests/Test_tree.c
@@ -421,7 +421,7 @@ main(int argc,char *argv[])
asn1_retCode result;
ASN1_TYPE definitions=ASN1_TYPE_EMPTY;
ASN1_TYPE asn1_element=ASN1_TYPE_EMPTY;
- char errorDescription[MAX_ERROR_DESCRIPTION_SIZE];
+ char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
FILE *out;
test_type *test;
int errorCounter=0,testCounter=0,der_len;