From a904e98b78b55e7a6213356225e45a04fdc457e1 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 18 Mar 2013 13:13:24 +0100 Subject: Refine looking up of attributes in arrays There was a class of bugs for looking up invalid or empty attributes in the internal PKCS#11 attribute arrays. * Refine what p11_attrs_find_valid() treats as valid * Rename p11_attrs_is_empty() to p11_attrs_terminator() for clarity --- trust/tests/test-data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trust/tests/test-data.c') diff --git a/trust/tests/test-data.c b/trust/tests/test-data.c index 0ddc4c6..b235f33 100644 --- a/trust/tests/test-data.c +++ b/trust/tests/test-data.c @@ -116,7 +116,7 @@ test_check_attrs_msg (CuTest *cu, { CK_ATTRIBUTE *attr; - while (!p11_attrs_is_empty (expected)) { + while (!p11_attrs_terminator (expected)) { attr = p11_attrs_find (attrs, expected->type); test_check_attr_msg (cu, file, line, expected, attr); expected++; -- cgit v1.1